Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using sqlplus to connect to Oracle installation bundles with RSA Authentication Manager 7x

Posted on 2009-07-14
7
Medium Priority
?
1,317 Views
Last Modified: 2013-12-19
Hi,

We are currently testing RSA Authentication Manager 7x as we want to upgrade our existing infrastructure.. RSA Auth Manager 7 uses oracle as there database system. I have installed RSA Authentication Manager 7 on a RHEL 4 ES server. The software it self works fine. Since we make lot of reports useing sql i tried to connect to oracle using sqlplus command. Now i am facing a lot of trouble to make it work. I have attached the screenshots of directory structure of RSA Auth Manager installation and directrory structure of oracle installation within RSA Auth Manager installation and my bashrc file. I have also attached the screenshot of error i am getting. Please consider that i am a total newbie in oracle...
oracle.jpg
sqlplus-error.jpg
sqlplus-error-2.jpg
0
Comment
Question by:kvjajoo
  • 2
  • 2
7 Comments
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 1400 total points
ID: 24848618
That error comes from either an invalid ORACLE_SID or invalid ORACLE_HOME, or the database is down.

Try to identify which database instance is running.

ps -ef | grep smon

Then set the ORACLE_SID according to what you see. Example: If the process name is ora_smon_CAT then your ORACLE_SID=CAT

Also verify ORACLE_BASE and ORACLE_HOME, normally they are not the same. If you go to ORACLE_HOME, you should see under there directories like (apex, assistants, bin, etc.... lib, lib32, rdbms)


If you don't see an instance process, then the problem is you need to start it.

sqlplus / as sysdba
SQL> startup open;

And to start the listener:

lsnrctl start


But prior to this, verify ORACLE_HOME and ORACLE_SID as directed above.





0
 
LVL 1

Author Comment

by:kvjajoo
ID: 24849715
Hi mrjoltcola,

Thanks for the reply,

I have specified ORACLE_SID paramater as same as output of ps -ef | grep smon command. But still i am getting error.

I am attaching three files which shows:
1. the error i am getting
2. Listener.ora
3.output of "lsnrctl services localhost" command
Please go through this files and help me resolve this issue...

sqlplus-error.txt
listener.ora.txt
lsnrctl-services-command.txt
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24851041
1) No need to use the @ syntax in your connect if the database is local and you have set ORACLE_SID. sqlplus will connect to the database specified by ORACLE_SID by default. Using @ syntax forces it to go through the listener / TCPIP

2) When you DO use the @ syntax, the dont use @localhost, use the name of the service alias.

sqlplus aceadm/password@VLSOR8JC
0
 
LVL 1

Author Comment

by:kvjajoo
ID: 24856924
Hi mrjoltcola,

I think your solution works.. But now i am facing new problem... None of my usernames and password are working... Is there anyway where i can create a user and password in order to access the database ?? also when i give "lsnrctl status" command the second last line in output says "The listener supports no services" ...
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question