New to oracle database. Can you please help?
I click on Start > > sqlplusI enter username System
Password then *.
* I leave the empty host string.
I hit connect system / *.
can * connect Alexandre / *.
then I Pat grant connect, resource of Alexander;
Then I type host and a command prompt window opens.
He has the command line C:\oracle\product\10.2.0\db_1\BIN >
All is well so far. I get connected and is also granted to connect.
Before this line I type edit xyz.sql
But I get a message that says * "Edit" is not recognized as internal or external command, an executable program or batch fichier.*
I AM NOT ABLE TO WRITE A PROCEDURE, BECAUSE I GET THE ABOVE MESSAGE.
I use Windows Vista Home Premium. I installed Oracle 10 g Exprees Edition for Vista (10.2.0.3)
Please help me.
Thank you.
sqlplus is what you want. Alternatively, the SQL Developer may be more intuitive if you're used to a GUI IDE, (that's another topic).
host is a sqlplus command that opens a command shell - you can get the world BACK on the Oracle database, where PL/SQL does not exist. It is used to temporarily leave the database and do something else at the system level without losing the current state of your sqlplus session.
Short answer: you need not order host for what you are trying to do. It is only adding to the confusion.
Example step by step (it's on Windows Vista Enterprise... Vista Home is the same)
I open a windows command shell
C:\Users\Brian>dir c:\
Volume in drive C has no label.
Volume Serial Number is 74D4-C846
Directory of c:\
05/05/2009 10:31 PM Autodesk
09/18/2006 04:43 PM 24 autoexec.bat
09/18/2006 04:43 PM 10 config.sys
10/05/2010 10:04 PM inetpub
03/08/2009 04:47 PM PerfLogs
10/11/2010 08:52 PM Program Files
09/13/2010 06:55 PM Users
10/05/2010 10:05 PM Windows
2 File(s) 34 bytes
6 Dir(s) 3,747,790,848 bytes free
Clearly, I'm in the BACK at this point. Connect to the database using sqlplus
C:\Users\Brian>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Feb 12 08:55:41 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: bbontrag
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from global_name;
GLOBAL_NAME
--------------------------------------------------------------------------
XE
SQL>
Clearly I am now in the database
SQL> host
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Brian>dir c:\
Volume in drive C has no label.
Volume Serial Number is 74D4-C846
Directory of c:\
05/05/2009 10:31 PM Autodesk
09/18/2006 04:43 PM 24 autoexec.bat
09/18/2006 04:43 PM 10 config.sys
10/05/2010 10:04 PM inetpub
03/08/2009 04:47 PM PerfLogs
10/11/2010 08:52 PM Program Files
09/13/2010 06:55 PM Users
10/05/2010 10:05 PM Windows
2 File(s) 34 bytes
6 Dir(s) 3,745,767,424 bytes free
The host of sqlplus command opens a new command shell and drops me it. I do order things (file system) Shell instead of being able to issue sqlplus commands until I have to leave the session host.
If you try to change xyz.sql NOW you are looking for a command on a computer named edit.exe or edit.cmd or something. My machine happens to have one - it is an old BACK (not Notepad) text editor
If you do not have edit.exe on your machine you get the DOS error ' 'Edit' is not recognized as internal or external command an executable program or batch file. "
C:\Users\Brian>exit
SQL>
I leave the shell and return to sqlplus. Here, I run the SQLPLUS to change the command, which opens your default text editor (usually Notepad)
SQL > edit xyz.sql
Notepad opens and I enter the following command:
create or replace procedure foo as
begin
dbms_output.put_line('Hello, World');
end;
/
I save the file and exit in Notepad. I'm in sqlplus.
SQL> set serveroutput on size 1000000
SQL> @xyz.sql
Procedure created.
SQL> exec foo
Hello, World
PL/SQL procedure successfully completed.
SQL>
Tags: Database
Similar Questions
-
I had an old computer 32-bit Windows XP Professional
All files and folders have been saved on the drive hard portable Western Digital and CD.
I can't open the data in my new computer with Windows 7 Home premium 64 bit preinstalled by the vendor.
The old computer is down. I can't access my saved data.
Can you please help.
Thank you
Hey riri,.
Thanks for choosing Windows and thank you for providing an opportunity to help you.
According to the description, you have problems to restore backup data from Windows XP to Windows 7.
What application did you use to back up data?
Perform the steps from the link below and see if it is resolved.
http://TechNet.Microsoft.com/en-us/magazine/ee851568.aspx
Answer to us if you are having problems with the restoration of data or any question of Windows, and we would be happy to help you.
Good day!
Hope this information helps.
-
Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving this handler does not run both source and target, can you please help me. Thank you
Hello
The setting should be as below, and not only the port number should be...
PORT 7809
Kind regards
Veera
-
I need help to disable Adobe CS6 on a device that was stolen and I have more access to what I can reinstall on a new computer. Can you please help?
When you have a non-functional computer and cannot turn it off, click on the link below
Serial number and activation support (no-Cloud) https://forums.adobe.com/thread/2041990 to adjust the number of activations
-
Can you please help me to transfer my registration of product to my new adobe account? I have my serial number.
Hello
Sorry for the delay in reply!
Please refer to this https://helpx.adobe.com/x-productkb/policy-pricing/transfer-product-license.html
You can contact our support chat to here too: https://helpx.adobe.com/contact.html
Let us know if this helps!
-
Can you please help me with the manufacturing of the year and the month of the following computers portable
[Personal information]
Hello:
Take a look at the first serial number you posted...
The 4th character from the left is the year of manufacture.
In the first case, it is either 2005, 2015 according to the model (that would be obvious based on the hardware of the laptop has, or when you bought).
The characters of 5th and 6th from the left indicate the week of manufacture.
If you need to take another look at the first serial number because 3-b is probably a 38 (which means the 38th week of the year). Like all the others who have two numbers in the 5th and 6th places.
The 38th week of the year is sometime in September.
-
I can't access hp hp630 bios setting... I do not know my password... can you please help.
Hello
Enter 42444370
Kind regards
DP - K
-
My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?
I have Windows XP.
really grateful for any advice.
Concerning
Spender 9
OE uses IE settings. Then configure things in IE (margins and others) and it should then apply to the when you print from OE.
Steve
-
Hi all. Can you please help. My father pressed something on his computer, who is crazy about all turn 90 degrees to the West, if you get my meaning? So everything is on her side constantly, even as I type. E-system laptop Windows Vista. Ideas please how I turn upwards in the correct way? A big thank you Jo
Try pressing:
CTRL + ALT +
(at the same time) You may need do it more than once.
-
can you please help I am running windows vista Home premium and letters on the keyboard are in french is my question mark key e, what is the problem and how to fix it thanks Dan
Your keyboard is set to french. To resolve this problem, look at the right hand of the bar at the bottom and you will see a keyboard. Click on it and press U.S..
I hope this helps. -
Hi I HAV a question... I use PS cs6 m having major problem can you please help me... whenever I have use the filter on sumthng Gallery or if I use a Quick Selection over all things low RAm error levonorgestrol tool... Although I have a huge memory?
-
Photoshop cs3 does not open raw (PEF) for cameras pentax k3 files, can you please help?
Hi Davet,
In order to open Pentax K-3 RAW files in Photoshop, you must at least Camera Raw 8.3 and above.
However Photoshop CS3 will be unable to update until that Camera Raw 8.3
Then I suggest you download DNG Converter, convert the PEF files to the DNG file format, and then use in Photoshop.
Kind regards
Tanuj
-
Why are publish you again? You must first answer the question I ask in your original thread.
-
I signed up for Adobe Reader DC today and you want to cancel. Your cancellation process is horrible. He takes me into a closed loop, bringing back me to the instructions, but do not allow me to cancel. Can you PLEASE help me to cancel this product?
Ellen Lutz
Hi ellenl71853837,
Please follow this link to Contact Customer Care, sign in using your Adobe ID (in which you have the subscription), click on "still need help? Contact us' button & initiated a discussion with our customer service team.
Kind regards
Nicos
-
I tried to load Flash Player on my XP computer but have of find undesirable equipped engines, namely Binkiland and Bing, neither of which I wanted to and I can't delete them because they do not appear in the list programs. Can you please help.
Hello Maria,.
Thank you very much for the link, which worked well. Some of the other times that I tried to load Flash Player were presented by the site and also the search engine. You will understand that I am not very computer savy!
Once again thank you.
Chris.
-
I have 2 accounts of adobe Setup and want to merge to 1. My Behance site is a different connection/e-mail than my creative cloud. So... When I'm connected to CC, I can't see my Behance site and updated. Can you please help?
Please contact our support staff from the following link for assistance on this subject: https://helpx.adobe.com/contact.html
(be sure to connect to adobe.com with your Adobe ID first)
Maybe you are looking for
-
Vista on Portege M200 - some problems with nVidia display driver
Hello I recently decided to update and perform a clean installation of Windows Vista on my Portege M200, now that Toshiba have released official drivers for this machine. Everything works fine, EXCEPT the nVidia display driver. I have the following q
-
Adding new address mail to permit red list - error 551
Hello I just tried to add new e-mail addresses to the list of senders and always got error 551. I tried yesterday and today several times with different browsers. Please take a look at the screenshot (in German). Thank you!
-
I have documents saved on a hard drive, they are in what is called a MRIMGfile. Windows says itcan'topen it. What do do?
-
Yesterday I installed Sansa + 8 GB with success as well as Rhapsody and I could see the two drive letters for the Sansa. I loaded songs and played them. Today I can't see drive letters. Sansa appears as an icon on the desktop. As suggested, I tried u
-
It's going to be a Windows Media Player 13?
They are working on a new Media Player?Finally added some useful 12 codecs, they tore the player... WHY? I ask You can listen to, or watch a song and not do anything, it's so so DUMBthey would at least have so you could anchor the components to the