SQL PLUS/ ORACLE
HELLO,
I DOWNLOADED 9i DATABASE 9.2.0.1.0 TO ACCESS THE SQL PLUS APPLICATION TO PRACTICE SQL. UPON THE LOGIN SCREEN WHEN IT ASK TO PUT IN USER I.D.,PASSWORD, AND HOST STRING. I RECEIVE AN ERROR MESSAGE THAT SAYS "ORA-12560: TNS: PROTOCOL ADAPTER ERROR" I BELIEVE IT IS SOME TYPE OF CONNECTION ERROR WITH THE NET CONFIGURATION ASSISTANT. SOMEONE PLEASE HELP. THANKS
This forum is for feedback about the OTN program and problems with OTN accounts. Technical questions cannot be answered here. Please post your question in the appropriate product or technology forum. http://forums.oracle.com/forums/index.jsp?cat=48
Similar Messages
-
Why "exp" is invalid in SQL*Plus (Oracle 9i)
When I run "exp ... " in SQL*Plus(Oracle 9i),why did it say "Unknown Command 'exp'..."??
exp is not a SQL or SQL*Plus command. It is an application that can be invoked at the command line of your operating system.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
ERROR IN CONNECTING IN SQL PLUS(ORACLE DEVELOPER SUIT 10g)
hi Friends
I have just installed ORACLE DEVELOPER SUIT 10g. my DATABASE is ORACLE XE(express edition) and username ,password for database is "SYSTEM","*****".
when i log in SQL PLUS witn this user name and password ,and HOST STRING=XE.it shows an ERROR = ORA-12154: TNS:could not tesolve the connect identifier specified.
my tnsname.ora is
XE =
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ARUNSOROUT-PC)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) )
EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) )
(CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) )
(CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) )
please help me in solving this ERROR.This forum is for the SQL Developer tool, not for general SQL or PL/SQL questions. The clue is in the name.
Try asking in the Database General or SQL and PL/SQL forums. -
SQL Plus / Oracle - Username and Password Troubles
Hello all
I have just download Oracle Database 10g Express Edition for Linux.
When i use the command 'connect' with SQL Plus i am required to enter a username ans password.
What is the default username and password, or where can i find it?
Many thanks1. If you installed the express edition, there is another step. Go to your GUI menu->Oracle->Documentation. Those names are not exactly right, but you should be able to figure them out from that
2. You are missing a post install step which the install documentation will tell you from step 1. If it is a regular Linux, you drop to a terminal and type something like "database configure". Look at the install documentation, it will tell you.
3. Do you have Apache running? You need a web server for the Oracle web interface to work
4. The error message you got means exactly what it says. That being said, you can also get this error message when the database is running. If you do, it is because you forgot to include a connection on you command:
connect sys/manager@xe
OR
connect sys/manager@localhost:1521Since you don't know the passwords, I assumed you did not run the configure step above since it asks for the password when you run it.
Loyal -
How Can I Open a database in SQL/PLUs
Hi, how can I Open Database with a SQL/Plus (Oracle 8i)
STARTUP OPEN;
Check this link
http://h50.isi.u-psud.fr/docmiage/oracle/doc/server.817/a82950/ch5.htm -
Within SQL*Plus, get error code of host command
Hello everyone,
I am currently writing an SQL*Plus (Oracle 10g) that has a big logic and somewhere in the middle, I have to call a host command, which is an C++ function.
I call it using
SQL> HOST cd
SQL> HOST cd bins
SQL> HOST ./my_procedureBut, I need to get the return code of my procedure to see if it finished correctly?
I checked [the manual|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch4.htm#sthref883] but they don't say anything about return codes.
When I try:
SQL> host echo $?
0It always returns 0, even if I SIGTERM or SIGKILL the child process. Anyone has an idea on how is it possible to retrieve the return code?
Thanksuser13117585 wrote:
Hello guys and thanks for your answers.
Let me tell you a little more about my problem... I have a 3 steps process. The first step is done in the database. It updates a few tables. Then, when that step successfully ends, I need to start a second step. That second step is done on the server where I have my SQL Plus session. Because I actually have 2 different machines. The first one is where the database is running and the second one where I have SQL Plus (Oracle client 10g) and the program that I have to start in this second step. Then, once this process is finished and his return code is 0, then I have to execute the third step in the database.
Basically, I wanted to have something like:
VARIABLE returnCode
BEGIN
:returnCode := some_package.do_step_1;
-- do whatever I want with returnCode.
EXCEPTION WHEN ...
END;
HOST execute_external_program
BEGIN
IF external_job_succeed THEN
some_package.do_step_3
END IF;
EXCEPTION...
END;
/I wanted to use the Oracle Scheduler to create an EXTERNAL JOB. The problem is that the external program is not deployed on the same machine as the database.I know that on 11g, we have external remote jobs. But I'm on 10g and I have no agent on the server where the external program is. So, what are my options? SQL*Plus and the host command... Or I can also write a bash script to do that... Or any hight level programming language...
Any other idea?
Thanks again guys,move functionality of second step into PL/SQL procedure resident inside DB. -
SQL*Plus: Comment appears in Default-Column
Please look at this commands, executed in SQL*Plus (Oracle 10g):
create table t1 (
c1 number,
c2 number default 0 -- comment in sqlplus
select column_name,data_default from all_tab_columns where table_name='T1';
COLUMN_NAME DATA_DEFAULT
C1
C2 0 -- comment in sqlplus
The comment is stored in the data dictionary! ?:|
insert into t1 (c1) values (0);
commit;
But the default clause works:
select c1,c2 from t1;
C1 C2
+0 0+
Is it a bug or is it a feature???
Greetings from Germany
WolfgangFrom: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_constraints.htm#sthref626
Setting Default Column Values
Default values can be defined using any literal
Bug or feature?
It depends on how literal you interprete literals?
!http://www.designer-daily.com/wp-content/uploads/2009/06/bug-feature.jpg! -
Sql plus transactions ...
Hi,
When a user clicks on Save Button on a web form, can we know from sql plus (Oracle) all the related queries (insert/Update etc) for that transaction ??
Please let me know.
Thanks ...Seven Years in Tibet ? No
I like Indiana Jones :-)
I like old thread mining.
Second Guest took mistake.
When dept is null,
SQL of Second Guest returns wrong result.
In other words,
There are 2 cases.
Case1 is dept = 10 is true
Case2 is dept = 10 is not true -
Problem running SQL PLUS in Oracle 8i and 9i on Windows XP
I've tried installing both Oracle 8.17 Personal Edition and also 9i in Windows XP Professional (each on a different occassion). I have run into the same problem each time. The installation itself goes fine in both cases, but when I run SQL PLUS, the Log On screen appears for 1-2 seconds then whole thing just closes automatically, so I can't ever access that application which is the only thing I need to work with. Any ideas on what's going wrong? Thanks.
Patrick,
Well a few things. Did you try TNSPING to see if the listener is up? If it's ok, can you connect with FREE toad? Download Oracle OEM and install that (the SQL net and sql plus portions). If you can't get tnsping to work, sqlplus isn't going too either. I don't know why the sqplus is actually shutting down, but I'm guessing the TNS NAMES entry isnt there (in the tnsnames.ora file). If the tnsnames entry is there then tnsping should work. Get tnsping to work first.
Tyler. -
Problem in starting SQL*PLUS in oracle database 10g
Hi
Well I am facing one problem while starting SQL*PLUS in oracle database 10g
ERROR - "Procedure entry point longjmp could not be located in dynamic link library orauts.dll"
This has happened when I installed Oracle Database 11g on same machine and when I deinstalled Oracle 11g then SQL*PLUS is started...no error came
Can anybody tell me the reason please...hi
pls im having the same problem but in my own case i installed oracle apex using 11g.
im env variable is:
C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\app\Xty\product\11.2.0\dbhome_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\
pls which is my apex_home so i can interchange it?
i also have oracle 10g client installed -
Sql * plus 9 is not able to connect oracle 7 database
Today I have installed oracle 9i release 2 and found that the sql * plus provided with is unable to connect oracle database version 7. But before that we were able to connect the oracle 7 database well.
Any one having a clue on that...?
Is it a product bug...?
If so then please provide me some alternative solution clue or patch download link. Please remember in any condition currently it is not possible discard my oracle 7 database.
With Regards.
Soumen.No, it is not a bug. You just cannot connect with Ora9i R2 SQL*Plus to an Ora7 database.You cannot create a DB link between the two database either, if you are planning on doing that.
A solution is to install Ora8 client, which can connect to both Ora9 and Ora7 database (but a db link will stil be impossible). -
Can SQL*Plus connect via ODBC to NON-Oracle data source?????
I am struggling to understand something. I downloaded Oracle instance client, SQL*Plus and ODBC components with the hopes of being able to connect via SQL*Plus to a non-Oracle/ODBC compliant database.
Is this possible? Or is SQL*Plus ability to connect via ODBC only to an Oracle data source??
Thanks...sqlplus only connects to oracle. you can use the odbc driver from instant client to allow other applications to access oracle via odbc (e.g. excel). if you need to connect to non-oracle odbc database (ms-access, foxpro, etc.) you need odbc driver for those sources.
you can use sqldeveloper to connect to oracle and non-oracle databases. check otn product info for sqldeveloper for more details. -
[0098]SQL*Plus encountered oracle error 100 while executing SQL Statement
Hi,
i'm trying to delete duplicate records from a table and running following script. this script is triggered from a unix script. it successfully deletes the records but in the last throws following error message,
:[0098]SQL*Plus encountered oracle error 100 while executing SQL Statement:2:Investigation required:
can anybody please help? below is the script.
DECLARE
--CURSOR FOR DUPLICATE ROWS
CURSOR CUR_DUPLICATE_ROWS IS
Select RMS_NOTE_ID, RMS_SUMMARY_NOTE_ID, count(*) cnt from PARTY_NOTE
group by RMS_NOTE_ID,RMS_SUMMARY_NOTE_ID having count(*) > 1;
var_date PARTY_NOTE.PARTY_NOTE_CREATED_DATE%TYPE;
BEGIN
FOR DUPLICATE_ROWS_REC IN CUR_DUPLICATE_ROWS
LOOP
delete from party_note
where RMS_NOTE_ID= DUPLICATE_ROWS_REC.RMS_NOTE_ID
and RMS_SUMMARY_NOTE_ID= DUPLICATE_ROWS_REC.RMS_SUMMARY_NOTE_ID
and rowid not in (select max(rowid) from party_note
where RMS_NOTE_ID= DUPLICATE_ROWS_REC.RMS_NOTE_ID and RMS_SUMMARY_NOTE_ID= DUPLICATE_ROWS_REC.RMS_SUMMARY_NOTE_ID);
commit;
END LOOP;
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL;
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
ROLLBACK;
END;Try this:
delete party_note
where rowid not in (select max(rowid)
from party_note
group by rms_note_id, rms_summary_note_id
commit;No need for cursors and loops.
And when that's completed, consider ALTERing the table to add a unique index (or even a primary key) so you'll never need to do this again. -
Oracle 9.0.1 SQL*Plus and PL/SQL
Having just upgraded from Oracle 8.0.1 to the above, can anyone suggest a good book for learning the above languages as I believe there is quite a lot of difference in the codes, which also contains some good exercises for trying them out.
Phil.I would take a look at this for PL/SQL:
Oracle PL/SQL Programming, 3rd Edition
If you want to learn SQL, you can try this book, which some people I know have liked: Mastering Oracle SQL
For the extra features of SQL*Plus, the Oracle manual is very complete and should be sufficient. -
I am using Oracle 10.1.0.4.2 SQL Plus, and dbms_output.put_line is not working. It returns the dbms_output ONLY from outside the procedure. I have dbms_output INSIDE my procedure, and none of it gets returned. Please help!
Here is what I enter:
set serveroutput on size 1000000;
DECLARE
x number:=0;
begin
DBMS_OUTPUT.ENABLE;
c2reports.c2proc(x,'TEST');
DBMS_OUTPUT.PUT_LINE('testX');
END;
testX
There should be more besides the 'testX' that gets returned. The first line in my procedure has output code to print testY. Thanks in advance!This is the forum for the Oracle's SQL Developer (Not for general SQL/PLSQL questions). You should ask question like this in the PL/SQL forum
Maybe you are looking for
-
Change of costing in mm2 (the field is disabled) -(standard price)
Hi Gurus change of costing in mm2 (the field is disabled) -(standard price). how to change the standard price ? is there any thing like standard TC. what is consting run? Please let me know any in puts? Thanks Greg
-
IPod Touch 2G stopped charging in licensed accessories
My 2nd Gen. iPod Touch (16GB) has stopped charging in my Griffin Powerdock Duo, and Griffin car adapter, they have charged in it for the last 2 months and will no longer do so. My Wife's 8GB 2nd Gen Touch will still charge in both. The only change I
-
Liquid header - once page resized middle content goes in the gap
Hi currently I have a liquid header, the logo is floating to the left and the navbar is floating to the right, and in the middle of the page (below the header) I have photo thumbnails which move to fit the page width. Once the page is expanded the th
-
How do i see chinese characters on screen?
Hi, can anyone tell me how to put chinese text in notes? I have tried with txt but it wont work. I set my ipod to english. but there are some documents I want to save as chinese txt and visible when I click 'notes' on ipod. pls help. i've no problem
-
Migrating to all 2012R2 Domain Controllers
Hello All, I am in an environment where we have multiple sites each with its own domain controller. Each is set up with several roles which include domain controller, dns server, and dhcp server. We want to replace each domain controller including th