Solved

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

Posted on 2009-07-14
7
1,298 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 350 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
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 syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now