Cannot run SQL script on Oracle Database 10g Express Edition - oracle10g

I'm trying to upload a script, and the file is being uploaded fine, but in the Script Editor window where I'm going to actually run the script, the entire file content is shown on one line and the whole edit area is in red. I'm not being able to run that script. Also if I create a new script from the editor, the edit area is again in red and I'm not able to save it. Please help me understand what's to be done so that I can run my SQL scripts.

Ok, so I figured it out by myself. So I'm answering my question so that it may help anyone else who have had this weird problem. When you open the database home page on any browser other than IE, this problem occurs, and you won't be able to do a single thing with your script. So always open your database home page on IE if you have to upload some data. For all other tasks, any other browser is fine. Cheers.

Related

Username and usage issue in postgresql psql terminal

I want to follow the steps shown in the screenshot on the psql screen, but even when I just open the screen, I get a different screen and I get an error every time. There is no website that I haven't visited for days, and there is no video that I haven't watched, but I still haven't been able to reach the result. is there anyone who can help?
this is my own terminal
this is what i want to do
You are running some kind of wrapper program around psql (maybe a .bat file?). Find the real psql.exe and run that. Maybe also figure out what created the bat(?) file and uninstall that, or at least take it out of your PATH.

Live server refreshing every second without changes in code file

When I'm using Live Server extension in VS Code, my browser is refreshing every second, even though I do not make nor save any changes in my code file.
Why is that happening and how to solve this problem?
Can anybody help me? :)
I had the same problem. The issue was my (unrelated) script was running in background and writing to a file in the same directory. Live server detected these changes and sent the "reload" request to the browser.
I had this issue recently as well, and I spoke with a couple of people while testing various browsers.
We figured out that the issue was there was too much loaded into VSCode and it was looking through every single project/written code.
I closed VSCode down and then opened my repo for the particular project in terminal. I then used code . which opens VSCode, it opened only that specific repo/folders and then tried using Live server which worked perfectly with no refreshes happening.

how to check if a .html file is open, if yes, close it using windows PowerShell script

I am new to PowerShell scripting. I would like to know if i can check whether a html file is open. If it is opened, then i would like to re-open it after running the same script.
My script creates a html file and using Invoke-Item, i am opening it. The next time i run the same script, the updated html file gets opened in the new tab. I want my script to close the previously opened file right before opening the new one or some similar logic.
By using Invoke-Item you actually are asking Windows' Explorer to open the file with the default application that's registered for .html files. In out of the box configuration, that's Internet Explorer or Edge. This, of course, can be customized.
Depending on the browser used, there might be a COM interface for querying browser status. As how to do that is subject to another a question, as it really depends on the browser. Looking for, say, file handles might or might not work, as browsers tend to open files in read only mode - they are not supposed to modify it anyway.
Anyway, this sounds like another a XY problem. Please edit the question and describe what problem are you really trying to solve; maybe there's better a way.

Script runs fine in ISE, but not in Powershell Console

I wrote an extremely lengthy script that creates a form. The main purpose of it it to connect to vCenter servers, total up hosts/vms within different datacenters and also identify ESXi host versions. Running the script in ISE the form loads fine and when I click the Button to start the many various functions to update the fields, it runs. I have Foreach() fields throughout and added in a little StatusLabel to the bottom of the form to show me where in the script it is currently scanning.
Once all was done and working, I saved the PS1 file and moved it to a shared server to be run. When I run the Powershell console (as Admin) and point to the file, the Form loads ok. Once I click the button to begin generating the info, It just changes to (Not Responding) and grays out. I know it's working and if left there long enough it will return the info.
Why does the console window not function like the ISE? I want to be able to see the information and Status Label update/change as it goes through the script (just like I do in the ISE).
Appreciate the feedback. The script is several thousand lines long and would need to be scrubbed before I upload. Was hoping to just get some general info before doing that.
I updated to v4 and verified that my command window was running as STA using the command from Jan Chrbolka. Script runs properly now.
I was also facing the same issue.(Btw, I cannot upgrade Powershell to V4 right now since it is my company owned one.)
The Browse button that I incorporated in my form was not working when I am lauching it from Powershell command line. It went to Not Responding state when I click the browse button.
I took the advise from Jan ChrbolkaMay about the STA and MTA.
I checked for the threads related to that and changed the script execution format to the below one which fixed my issue.(adding the word -STA)
powershell -STA -File D:\PS\GUI.ps1
For checking the current state. Use the below query in Commandshell as well as ISE.

Oracle Forms Issue. Webpage cannot be found

I'm trying to develop a program using Oracle Forms that would allow me to check/insert data into my database. First thing I do is I open up XAAMP and start up Apache and MySQL. The second thing I do is I open up cmd, locate the oc4j.jar's directory and I open it using "java -jar oc4j.jar" command. After OC4J starts up without any errors, I go to the Oracle Forms Builder Edit->Preferences->Runtime and I change the apllication url to http://mycomputersname:8888/forms/frmservlet. After that, I click on the Run Form button. Internet Explorer starts up and for a 0.5 of a second, a text "ORACLE FORMS." appears on the screen. After that, the text Cannot found webpage appears on the screen. Oh yeah, I forgot to mention. I also successfully logged myself into my database before I tried to run the form.
Any help would be much appreciated. :)
I have fixed the problem. It appears that the issue was that I manually created an instance of oc4j.jar. When I instead clicked on Start -> Oracle Forms -> Start oc4j instance "Run Form" button worked just fine. :)