To find out which session is blocking a package: SELECT s.*, l.lock_type, l.mode_held, l.mode_requested, l.lock_id1, 'alter system kill session '|| s.sid|| ' '|| s.serial#|| ' ' immediate; kill_sid FROM dba_lock_internal l, v$session…
This script displays the relationships between system processes and sessions in Oracle: select * from v$process p, v$session s where p.addr=s.paddr
This is another method for resolving the error type: ORA-01654: unable to extend. We will learn the tablespace sizes and free space: select file_name,tablespace_name,user_bytes/1024/1024,bytes/1024/1024, maxbytes/1024/1024,autoextensible from dba_data_file
Error when setting up a connection to the server from Oracle SQL Developer: ORA-00604: error occured at recursive SQL level 1ORA-12705: Cannot access NLS data files or invalid enviroment specified To fix, follow these steps: Open the <folder_with_the_environment>\ide\bin\ide.conf file and add the following lines: AddVMOption -Duser.language=en AddVMOption -Duser.region=us And that's it!
For those who have switched from MSSQL to Oracle, like me, it's very uncomfortable to lack such a convenient construction as: select * into #tmp from table1 Where #tmp - temporary table, with which we can further address within the session as with a normal one...
It's no secret that when using DISTINCT with SELECT, we get a set of unique records, but it turns out in Oracle, there is another operator for this purpose UNIQUE - and, as experiments have shown, it seems to provide better performance.
Get Oracle Version SELECT * FROM V$VERSION
Get catalog folder in Oracle SELECT * FROM V$DIAG_INFO