Showing posts with label oracle. Show all posts
Showing posts with label oracle. Show all posts

Thursday, February 2, 2017

sql commands

Find version of Oracle database instance 
 
SELECT * FROM V$VERSION
or
SELECT version FROM V$INSTANCE
 
 
Find the current ORACLE_SID you are logged in 
 
sqlplus sys as sysdba;

select name from v$database;
select instance from v$thread;
select ora_database_name from dual;
 
Find the current schema name you are logged in 

select sys_context('userenv','instance_name') from dual; 
select user from dual; 
select * from global_name; 
 
 
Find location of alert logs, alert log file name will be alert_ORACLE_SID.log
 
show parameter background;  
 
 
To find out the location of diagnostic info like trace , logs etc. 
select * from v$diag_info; 

Monday, September 29, 2014

Not able to launch sqldeveloper



You have installed sqldeveloper to connect to a remote oracle database or a local database on your system but  you are not able to launch it .

You are getting any error similar as below .

Java software is installed.
Can not find java
JVM argument is not correct etc. etc.


Then you can edit the following file and correct the path of JAVA HOME


D:\app\User\product\11.1.0\db_1\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf


Below is the line that needs to be added at the top of sqldeveloper.conf

SetJavaHome D:\app\User\product\11.1.0\db_1\jdk


Thats it , your problem is fixed.