After moving our 10g database to 11g with golden gate...our developers were complaining about ORA-12991: column is referenced in a multi-column constraint...This problem is related to enabling Supplemental Logging with "ALTER DATABASE ADD SUPPLEMENTAL LOG DATA" , when u try to drop a column...First of all u have to find what log_group_name causes the problem...
SQL> select log_group_name from dba_log_groups where table_name = 'TABLE_NAME' ;
LOG_GROUP_NAME
============================
GGS_DROP_COLS_24242
Then drop it;
SQL> alter table table_name drop supplemental log group GGS_DROP_COLS_24242;
table altered.
- Erol
Thursday, April 18, 2013
Friday, April 5, 2013
how to set NLS_DATA_FORMAT on linux before starting rman
NLS_DATE_FORMAT='DD-MON-YYYY:HH24:MI:SS'; export NLS_DATE_FORMAT
rman target sys/password
rman target sys/password
Creating user with dbms_metadata.get_ddl
select dbms_metadata.get_ddl('USER',username) from dba_users where username in ('user_1',user_2',user_3','user_4')
user_1,user_2,user_3,user_4 should be defined by dba as real user names...
Thursday, April 4, 2013
Subscribe to:
Posts (Atom)