Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | Questions | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums
Online Tools:  Generate rename / copy datafiles script

 
 
 
 Found 20 tips, Displaying 1 - 10 
 
Sort by 
 
 Set NLS parameter for session in logon trigger
If you are trying to run something like ALTER SESSION SET in logon trigger you will get ORA-04092 or if you are trying to do it with DBMS_SESSION you will get ORA-06512. The solution is to create a procedure and then call procedure from the trigger i.e.: -- -- procedure to set NLS_DATE_FORMAT ...
     
More...

03/31/09
 
 
 How to Set the DB on the archive log mode ?
1- log on the db (database) as sys dba >sqlplus >username/password as sysdba 2- shutdown the DB immediate >sqlplus shutdown immediate 3-start db in mount state >sqlplus startup mount 4-alter database archive log 5-alter database open
     
More...

01/13/09
 
 
 Getting ORA-04021 when running grant execute on package?
If you are trying to grant execute on a package and getting ORA-04021 'timeout occurred while waiting to lock object' try the following: Check who else is using the packages: SQL> select * from v$access where object = 'PACKAGE_NAME'; If you see another session accessing the package ask the user to logout or ...
 More...
10/31/08
 
 
 Get list of tablespaces
SQL statement to get a list of all tablespaces in Oracle database: SQL> select * from dba_tablespaces;
 More...
10/08/08
 
 
 How to purge Oracle recycle bin
To purge recyclebin for a specific user, login as that user and run: SQL> PURGE dba_recyclebin; To purge everything: SQL> PURGE dba_recyclebin;
     
More...

10/06/08
 
 
 Dropping online redo logs
If you want to move redo logs to another filesystem without shutting down the database you can create new groups on the new filesystem and drop the old groups. 1. Create new online redo log groups SQL> ALTER DATABASE ADD LOGFILE ('/path2redo/redo4a.log') SIZE 100M; SQL> ALTER DATABASE ADD LOGFILE ('/path2redo/redo5a.log') SIZE 100M; SQL> ALTER ...
 More...
06/13/08
 
 
 How to enable autoextend on tablespaces and datafiles
-- Create tablespace with a datafile that will be auto extended to 10Gb create tablespace TABLESPACE_NAME datafile '/path/to/datafile.dbf' size 2000M AUTOEXTEND ON MAXSIZE 10000M extent management local uniform size 5M segment space management auto; If you want to enable autoextend on a smallfile tablespace (if you are trying to alter tablespace to ...
     
More...

06/04/08
 
 
 How to identify semaphors and shared memory for $ORACLE_SID
This is how to find out what shared memory / semaphors are used by a specific Oracle instance, in case you need to clean up shared memory after database crash for example. . oraenv [ORACLE_SID] $ORACLE_HOME/bin/sysresv
     
More...

02/14/08
 
 
 How to move an index to another tablespace
SQL> alter index [index_name] rebuild tablespace [tablespace_name];
 More...
02/11/08
 
 
 How to find out character set for a database
SQL> select * from v$nls_parameters; PARAMETER ---------------------------------------------------------------- VALUE ---------------------------------------------------------------- NLS_CHARACTERSET US7ASCII ...
 More...
10/25/07
 
 

Page 1 | 2 >>

Recent tips & tricks
Databases > Oracle > Installation & Setup : ld: fatal: file /dev/zero: mma...
Databases > Oracle : Set NLS parameter for session ...
Operating Systems > Unix > SUN Solaris : Find out number and speed of C...
Databases > Oracle > Installation & Setup : How to check if component is i...

More categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com