Oracle 8i Lite: logging to sql plus - uid, password, host string - whats that
If i install "Oracle 8i Lite" (just locally, not networked). There are two important things : "Navigator", and "SQL Plus". If in navigator, I create a local database called "xxx" (tables under 'system' user). Then if i need to query - i go to SQL Plus. Fine, but how do we log in - what is the "host string" ?.
The login needs, Userid, Password, Host String. In some docs, it said the userid, password for 'system' account is 'system, manager' respectively. Anyways, now the host string , i had read the 'host string' will be like "@databasename", so I think for me, it will be "@xxx"
But the way, I'm understing, i cant log, and SQL Plus says something "TNS: could not resolve service name". Maybe i have to something with that tnsnames.ora file....?
Incase, you could give ANY information, kindly inform.
Thanks
null
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mulyadi Kurniawan ([email protected]):
Host string usually refers to the host string that is stored in your TNSNAMES.ORA file. You can open TNSNAMES.ORA with a text editor.
If you get "TNS: could not resolve service name", it's either you have not start the database or your configuration in TNSNAMES.ORA is wrong.<HR></BLOCKQUOTE>
hi,
iam getting the same error(the TNS thing)can you be a bit more explaining regarding how to solve the problem.
thanks
null
Similar Messages
-
Oracle 10g SQL plus username, password + Host string unkown
Hi Friends
I have just installed Oracle 10g in my computer. I could not use SQL plus because I dont know the exact username, password and host string to connect. Is there anybody to help me out. I am bit stressed for this.. Thanks by HossainDo not reply to 5 year old posts. If you have a problem, start a post of your own, referencing the old one if necessary.
Describe your problem explicitly, giving all relevant information.
Please see Re: 2. How do I ask a question on the forums? -
If you are running Personal Oracle, you do not need to give host
string to log in SQL Plus. However, database should be started
up first.
In order to run SQL Plus on a client workstation in client-
server environment, you should create a host string using Net
Easy Configuration. If you have created 'ORACLE' as the host
string, it is OK. You will also have to start a listener.sorry I was trying to reply to a post I read and had this
happen. Please ignore this. -
ShutDown Issue while log in Sql plus
when i log in Sql plus with username and password. it says Oracle Intialization or shutdown in progress.let me know please .
when i go to Application Development -> sql plus -> and when i type username sys as sysdba .and type require password.window close automatically . but when i type username and press ok .button it ask for password .and it working fine .let me know please . any help would be highly appreciated.
Edited by: user1095036 on Sep 2, 2012 2:33 PM -
I am trying to log onto SQL Plus but I am getting this error.
ORA - 1256: TNS: Protocol adapter error
I am using
Scott as the username
tiger as password
placing nothing in the host string.
Help would be appreciated.If you're still having problems, could you post the install steps you
followed (including version numbers), how you created the database,
the correct error number (12560?), and what steps you've used to try
and resolve the problem? Web search engines contain a lot of hits on
common TNS errors. Also, if you think this is a problem with installation,
the Installation forum is at:
http://www.oracle.com/forums/forum.jsp?forum=64
-- CJ -
1.2.6 oracle lite connecting using SQL*PLUS
i have successfully installed a oracle 8iLite on win2000 professional.
user id --- system
password --- manager
host string ---- odbc:polite
But when i try to give this command
" set serveroutput on " i am getting a message "Server not available or version too low for this feature"
Can anybody help me to overcome this problem.
i am new to Oracle .
PLEASE EMAIL ME
THANK YOU
[email protected]hi, I'd like to know if its
TNS 12560: protocol Adapter error
Make sure address uses the proper protocol specification in your connect descriptor.
if its that then U will have to verify that your database is registered with the Listener....
Also verify that your Oracle SID is set to the specific instance
You can do that by settin the environment variable;
c:\> set oracle_sid=<database_sid>
then try to connect after words. -
Can I use username = system when I log into SQL plus?
I am new to Oracle and SQL plus and I have some questions to ask?
I managed to get SQLPlus working using sqlplus system/password
When I installed Oracle I created a database called ORCL and set a password. My question is when I am using SQL Plus is it OK
to use username= system. The problem is that I created 3 tables in this database but when I list the tables I get about 181 tables returned.
It seems that I have logged into the master database.
In fact I just used the password I set when I installed Oracle (not the @asi past)
from:
http://docs.oracle.com/cd/E13212_01/wles/docs42/installadmin/database.html
Configuring an Oracle Policy Database
To configure an Oracle policy database, you must create the policy database, create a security role and a user, and grant the security role and user access.
To configure a policy database, perform the following steps:
Open a command window, run the Oracle SQLPlus utility, and login as user SYSTEM with the password you set for that user account when you installed the Oracle database software.
sqlplus system/password@asi
where: password is the password you set for the system account when you installed the database software and asi is the database instance name.
The name of the database I set up when I installed Oracle was ORCL.
I can set up a data source using WebLogic Server Administration Console using the following data:
Database name: ORCL
Host name: localhost
Port: 1521
Database USer Name: System
Password: the password I set when I installed Oracle
This is different form the book I am using where the writer used the database name XE as in the following:
Database name: XE
Host name: localhost
Port: 1521
Database USer Name: OE
Password: .......
Confirm Password: .......
Anyways I managed to create some tables using SQL script. I assume these are in the ORCL database.
SELECT TABLE_NAME FROM USER_TABLES will list all the tables in the database.
Apparently there are a lot more tables in this database (181 tables) than I thought. I have only created 3 tables.
Article
Section
Edition
Is this how it should be?
Also I am trying to create another table Catalog but SQLPlus is not allowing me to do this!
ERROR at line 1:
ORA-00955: name is already used by an existing object
Next I create an EJB project using Eclipse (Oracle Enterprise Pack for Eclipse). Then
I add a JPA (Java Persistence API) project facet. In this I specify the following:
SID: ORCL
Host: localhost
Port Number: 1521
User name: System
Password: The password I set when I installed Oracle.
Here there is a GUI called Select tables which gives a list of tables I assume the same list of table
I had listed in DOS however there appears to be more tables here.
Anyways, I am just wondering am I on the correct path and would this Database I am using be the
ORCL database. Would all these tables be tables that are in the ORCL database?
Thank you in advance for your help.
Brian.Hi Shannon,
Thanks for visiting Apple Support Communities.
You can sign in to another iTunes Store account on your Nan's iPad by following the steps in this article:
iOS: Changing the signed-in iTunes Store Apple ID account
http://support.apple.com/kb/ht1311
Best,
Jeremy -
Connecting to 9i Lite DBMS via SQL*Plus?
Finally got the install to run successfully. However, I can't make an ODBC connection to the database with SQL*Plus. Any ideas (other than going back to 8i Lite)?
Have you created a User Data Source to your Oracle Lite database throught the Microsoft ODBC Administrator? If so, then through sql*plus- you should be able to test connectivity.
Goto a dos command window and type sqlplus system/manager@odbc:your_database_name;
Where your_database_name is the name of the OBDC Data Source name that you have created.
Hope this helps.
null -
Oracle 8i Lite and XML SQL Utility
Can I use XML SQL Utility with Oracle 8i Lite
using the Oracle 8i Lite Driver
nullThere will be an version of the XML SQL Utility appearing here shortly. In the meantime you can download the current version of the XSQL Servlet which has the new v2 compatible oraclexmlsql.jar.
Oracle XML Team -
Lite 8i - Win98 - SQL*Plus
Why can't I connect. Can connect to Navigator,Designer lite.
OBDC test,,,just want to mess with SQL*Plus,,, that's all.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mulyadi Kurniawan ([email protected]):
Host string usually refers to the host string that is stored in your TNSNAMES.ORA file. You can open TNSNAMES.ORA with a text editor.
If you get "TNS: could not resolve service name", it's either you have not start the database or your configuration in TNSNAMES.ORA is wrong.<HR></BLOCKQUOTE>
hi,
iam getting the same error(the TNS thing)can you be a bit more explaining regarding how to solve the problem.
thanks
null -
ORA-12541: TNS: no listener when attempting to log int SQL*Plus
Hi everyone,
Since we are now studying forms. I installed The Developer Suite on the same machine as the Oracle Database. I was able to use SQL*Plus and the Procedure Builder in Oracle Forms. I was able to connect to the Oracle 8i database with the Oracle 9i Developer. Then I started playing with forms and when I tried to run the form it told me that it could not find a listener. So, I made some changes on the Oracle Database and added a listener and gave it the 8888 port that it was looking for. That did not work so I change the properties on the forms to the port that the database listener had 1521 or at least that is what I believe it was. Now I cannot connect to Oracle SQL*PLus and I cannot connect from the forms to the database either. I have deleted the listeners and added them again. I have checked under services to make sure that it is started. Has anyone seen this before.
Thanks for any help.
RobertThe problem comes into play when you try to select the actual LOB locator remotely, however straight INSERTs aren't a problem.
SQL> desc test_clob1
Name Null? Type
A1 NUMBER
A2 CLOB
SQL> desc test_clob2@remotedb
Name Null? Type
A1 NUMBER
A2 CLOB
SQL> declare
2 big_text varchar2(32767) := rpad('#',32767,'#');
3 begin
4 insert into test_clob1 values (1, big_text );
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> select a1, dbms_lob.getlength(a2) from test_clob1;
A1 DBMS_LOB.GETLENGTH(A2)
1 32767
SQL> select count(*) from test_clob2@remotedb;
COUNT(*)
0
SQL> insert into test_clob2@remotedb
2 select * from test_clob1;
1 row created.
SQL> select a1, dbms_lob.getlength(a2) from test_clob2@remotedb;
select a1, dbms_lob.getlength(a2) from test_clob2@remotedb
ERROR at line 1:
ORA-22992: cannot use LOB locators selected from remote tables
SQL> commit;
Commit complete.However, if I do a COMMIT and then go to the remote database and do the same query, I get the following:
SQL> select a1, dbms_lob.getlength(a2) from test_clob2;
A1 DBMS_LOB.GETLENGTH(A2)
1 32767HTH -
ORA-12154 error when logging into SQL*Plus
I installed Oracle 10g (10.2.0.3.0) server on a Hyper-V virtual machine running Windows Server 2008 Enterprise as a standalone server. I did a software only install and then ran the Database Configuration Assistant to create a database. I also ran the Oracle Net Configuration Assistant to configure the Listener, Naming Methods, and Local Net Service Name. I ran the test in the Net Configuration Assistant and it was successful after I changed the login credentials to use the SYSTEM account and password. TNSPING of the net service name is successful. I can also successfully connect to the database via Enterprise Manager using the SYSTEM account and password. What I can NOT do is connect locally to the database via SQL*Plus (either through the gui or command line). I get the following error:
ERROR:
ORA-12154: TNS: Could not resolve the connect identifier specified
I've checked and double-checked the LISTENER.ORA, SQLNET.ORA, and TNSNAMES.ORA files. They all seem correct to me, especially since I used the configuration assistants to create them.
Anyone have an idea what might be wrong or what I can check next? Any help would be appreciated!
Thanks!They all seem correct to me, especially since I used the configuration assistants to create them. Garbage In, Garbage Out.
Since Oracle throws an error, I strongly suspect you are mistaken.
Simply put, you are using something like "@REMOTE" someplace & somehow and the error indicates SQL*Net does not know to what @REMOTE refers.
How many systems are involved, names, OS version, etc?
post connection string & post contents of tnsnames.ora file. -
SQL plus username, password, & hoststring
Hello,
I downloaded and installed oracle 8 lite, and then I open SQL plus , they require
user name, password, and host string. I don't know what they are. Please tell me
about that.
Thank you very much for your help.
Have a nice weekend.
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by dunganh:
Hello,
I downloaded and installed oracle 8 lite, and then I open SQL plus , they require
user name, password, and host string. I don't know what they are. Please tell me
about that.
Thank you very much for your help.
Have a nice weekend.
enter system as user name and manager as password and click ok. then enter the following: grant resource, connect, dba to your_name identified by your_password.
then
conn your_name/your_password.
<HR></BLOCKQUOTE>
null -
SQL*Plus username/password
**While leaving the host name blank, I've tried to use the following username/password combinations to no avail:
scott/tiger
system/manager
**I always receive this error message:
ORA-12560 TNS:protocol adapter error
**When I looked that error message up with a quick internet search, I came upon this information:
What causes this error?
This message indicates that there is a problem at the protocol adapter level. That is, SQL*Net and the Interchange are functioning correctly, but there is something wrong with the protocol adapter that underlies them.
How to fix it
Check addresses used for proper protocol specification. Before reporting this error, look at the error stack and check for lower level transport errors. For further details, turn on tracing and re-execute the operation. Turn off tracing when the operation is complete or you will use a lot of disk space. The trace file will have details of the problem.
You may get this error running Oracle 8.1.6 under Win2000 when you try to log in using 'svrmgrl'. You can normally connect using SQL*Plus or any other product, svrmgrl is going to be discontinued.
**I'm not terribly sure what the "how to fix it" intructions mean. I'd appreciate any help in trying to figure that out.I downloaded the database and received the same error message. What do you mean by that? You cannot just download a database. You can download the Oracle server software, install it, and create a database.
Are you on a network with a database already installed somewhere on that network? In that case, ask the DBA to make your connection to that database.
can you tell me more about tools that support PL/SQL?PL/SQL is supported in the Oracle database, Forms, Reports, web pages can be created with it etc. You really need to have an idea what you want to do. Oracle is so complex, that you cannot just start somewhere. -
Passing return code of SQL*PLUS 'exit' to host
Say, I am running a sql plus script from the MS windows command prompt, and I am EXITing this script with a return code, do you know how I can capture the return code in the host environment ?
Greetings,
If U use a Shell script to invoke the SQLPLUS then U could use '$?' to see the return code.
For Example,
sqlplus -s > <<EOF
connect USER_PSWD_DB
column num_rows new_value num_rows format 9999
select x num_rows from table_name;
EXIT num_rows
EOF
if [ $? == 2 ]; then
echo "Process failed..."
fi
Regards,
Badhri ...
Maybe you are looking for
-
Hi Experts, Can you please share your experience regarding in escalating high-prioritized tickets regarding extractions, Performance Issues and also load failures as per your working SLAs. What king of issues means in which scenario the business
-
How to buy vouchers for Oracle PL/SQL Developer Certified Associate ?
I want to become Oracle PL/SQL Developer Certified Associate. For this, I want to write 1Z0-007 (Introduction to Oracle9i SQL) and 1Z0-147 (Program with PL/SQL) tests. I went through so many posts in the forum, but I didn't get the required answers.
-
Online number - difficulties and errors
Dear Sirs, I'm using an online number in Skype network such as XX2-55-55. It is very similar to the number in one of the biggest airline companies in my country. As I think the company is also using Skype online number which is XX5-55-55. The problem
-
Oracle Memory utilization gradually increasing up to the max in short span
Hi All, Our Oracle database running in windows 2000,having max sessions of 1500 attains it max_memory 850m once 1500 sessions reached. --Shared pool memory(SQL AREA,LIBRARY CACHE,SHAREDPOOL MISCELL.,) gradually increasing. Oracle database version:9.2
-
How to create a link to a home page?
Hi, I would like to create a link to a home page, some thing similar to what APEX logon screen has at the bottom. Could some one please help me with this? I do not find any item to do this. Do I have to make a separate HTML region and put my HTML cod