Sys log trigger in cluster database
Hi Experts,
We have 3 nodes cluster database. How do we create a sys log trigger in cluster database?
Do I need to create a system log trigger at each database instance in 3 node(instance) cluster database? or only create one system log trigger in one instance?
Thanks
Jin
A RAC database is a single database with many instances: one database means one logon trigger.
You just need to create the logon trigger when connected to any instance of the same database.
Similar Messages
-
How many sys log trigger can be created
Hi Friends,
We have an an application that set a sys log trigger in 10G database .
We can not modify vendor system log trigger.
Could we create second sys log trigger to other audit purpose ? any performance that can be caused by second sys log trigger?
Thanks
JinWhat is being logged with syslog and how often? If you trigger it 1000times every second, then yes, it may affect your performance. If it is once every hour, no.
There are ways better than syslog to audit a database. Read about AUDIT command in SQL docs. -
DB console is showing two Cluster databases
Hi,
I have a two RAC envieronment. I added another instacne . Now the EM (DBconsole) is showing only the old instances , not the new one as well. when i did further investigation , found this.
On the OEM console page, click preferences, click preferred Credentials and the database instance
Under cluster databases, system is showing following
(+)DBNAME.hostname.lcl
(+)DBNAME
when i expanded the (+)DBNAME.hostname.lcl, its showing
DBNAME.hostname.lcl_DBNAME3
Exapanding (+)DBNAME shows
DBNAME_DBNAME2
DBNAME_DBNAME1
The problem is , why not all the instances are shown into one cluster databases.
does anyone knows, how to fix. I have raised a SR , but as usual no solution.I definitely feel your pain, I've been there and done that. If you don't mind punting I would suggest the following:
As an example, we have a three node rac database. The node/instance names are rac01/ORADB1, rac02/ORADB2, and rac03/ORADB3. We want to install EM dbconsole to manage all the instances. rac01 is the EM host server. The database registry shows the following:
COMP_ID COMP_NAME VERSION STATUS SCHEMA
EM Oracle Enterprise Manager 11.1.0.6.0 VALID SYSMAN
Set up ssh authorization in such way so that all nodes can connect to each other without password prompt. The ssh authorization can be disabled after the configuration.
emca -config dbcontrol db -repos recreate -cluster -EM_NODE rac01 -EM_SID_LIST ORADB2,ORADB3 -SYS_PWD password -DBSNMP_PWD password -SYSMAN_PWD password -PORT 1521
The logs for this activity can be found under:
cd $ORACLE_BASE/cfgtoollogs/emca/<DB_UNIQUE_NAME>
You will be prompted for :
Database unique name: ORADB
Cluster name: rac_cluster
Email address for notifications (optional): <enter>
Outgoing Mail (SMTP) server for notifications (optional): <enter>
ASM ORACLE_HOME [ /apps/dbs/oracle/product/11.1.0/db_1 ]: <enter>
ASM port [ 1521 ]: <enter>
ASM user role [ SYSDBA ]: <enter>
ASM username [ SYS ]: <enter>
ASM user password: < the password for SYS ASM user>
The whole process takes about 1 hour, depending on the speed of the servers that you are using.
If in the future another node is added to the RAC system, then issue the following command on node 1:
emca -addInst db
You will be prompted for :
Node name: <new server name>
Database unique name: ORADB
Database SID: <new instance name>
Password for SYS user: <password>
You should find the agent running on non host nodes, in this case rac02 and rac03, while db console will also be running on the host node i.e. rac01.
IF not then run emctl start dbconsole on all on nodes.
How does that work for you?
-JR jr. -
Creation of cluster database failed
Hai all,
We have successfully implemented Oracle 10g RAC on windows 2003.. but when am trying to create a new cluster database using DBCA ..DBCA failed after reaching 70% with the error
PRKR-1001 PRKR-1001 "cluster database dbname does not exist"
The other database is working fine and all services are up
Thanks
Kaican you see the db registered in CRS by running crs_stat -t, seems like issue with reigtring db with CRS. Please check dbca logs and crs logs for details.
-
11.2 cluster database instances crashed..
Hi all,
we have a two node 11.2 cluster on OL 5.7.
Today our cluster database instances on node two all crashed.
I found several log entry´s. There are all addicted to network.
_____Alert log
Thu Mar 22 09:15:31 2012
Errors in file /u01/app/oracle/diag/rdbms/borac4/borac42/trace/borac42_ora_27888.trc (incident=5217):
ORA-00603: ORACLE server session terminated by fatal error
ORA-27501: IPC error creating a port
ORA-27300: OS system dependent operation:bind failed with status: 99
ORA-27301: OS failure message: Cannot assign requested address
ORA-27302: failure occurred at: sskgxpsock
Incident details in: /u01/app/oracle/diag/rdbms/borac4/borac42/incident/incdir_5217/borac42_ora_27888_i5217.trc
Thu Mar 22 09:15:33 2012
SKGXP: ospid 5375: network interface query failed for IP address 169.254.68.184.
SKGXP: [error 11017]
... we can ping all interfaces, interlinks and virtuelle ip-addresse linke 169.254....
we als can not find any misconfiguration and can ping all routes.
If I try to restart the instances with sqlplus startup
ORA-00119: invalid specification for system parameter REMOTE_LISTENER
ORA-00132: syntax error or unresolved network name 'borac4-prod:1521'
We did not change anything at the configuration :-/
I can ping the SCAN address from dns configuration "ping borac4-prod:" also telnet established a connection "telnet borac4-prod 1521"
We start all instances via SPFILE from an ASM instance
Does anyone has some ideas to dig the problem out ?
Thanks
*TI repeat we did not change anything at the configuration .....I guess....I hope....NOT
$ORACLE_HOME/network/admin/sqlnet.ora
NAMES.DIRECTORY_PATH= (tnsnames,ldap,EZCONNECT)
--> EZCONNECT
METANOTE: 1254929.1
*T -
hi
I am trying to configure oracle 10g 2 node cluster database on Oracle grid control.
When i am trying to add the database, it discovers the defaulr one which is not proper. so i add manually. When I add the cluster database details and instance details when i submit i am getting foll. error.
Database Configuration Result
D2mp.prd.amer.dell.com:
Saving D2mp1.prd.amer.dell.com ...java.sql.SQLException: ORA-20600: The specified target is in the process of being deleted.(target name = D2mp.prd.amer.dell.com)(target type = rac_database)(target guid = CE1212BCBABF40F46B893140DBB5EBFC) ORA-06512: at "SYSMAN.TARGETS_INSERT_TRIGGER", line 24 ORA-04088: error during execution of trigger 'SYSMAN.TARGETS_INSERT_TRIGGER' ORA-06512: at "SYSMAN.MGMT_TARGET", line 2720 ORA-06512: at line 1 - ORA-20600: The specified target is in the process of being deleted.(target name = D2mp.prd.amer.dell.com)(target type = rac_database)(target guid = CE1212BCBABF40F46B893140DBB5EBFC) ORA-06512: at "SYSMAN.TARGETS_INSERT_TRIGGER", line 24 ORA-04088: error during execution of trigger 'SYSMAN.TARGETS_INSERT_TRIGGER' ORA-06512: at "SYSMAN.MGMT_TARGET", line 2720 ORA-06512: at line 1
Saving D2mp2.prd.amer.dell.com ...java.sql.SQLException: ORA-20600: The specified target is in the process of being deleted.(target name = D2mp.prd.amer.dell.com)(target type = rac_database)(target guid = CE1212BCBABF40F46B893140DBB5EBFC) ORA-06512: at "SYSMAN.TARGETS_INSERT_TRIGGER", line 24 ORA-04088: error during execution of trigger 'SYSMAN.TARGETS_INSERT_TRIGGER' ORA-06512: at "SYSMAN.MGMT_TARGET", line 2720 ORA-06512: at line 1 - ORA-20600: The specified target is in the process of being deleted.(target name = D2mp.prd.amer.dell.com)(target type = rac_database)(target guid = CE1212BCBABF40F46B893140DBB5EBFC) ORA-06512: at "SYSMAN.TARGETS_INSERT_TRIGGER", line 24 ORA-04088: error during execution of trigger 'SYSMAN.TARGETS_INSERT_TRIGGER' ORA-06512: at "SYSMAN.MGMT_TARGET", line 2720 ORA-06512: at line 1
If i check management system and deleted targets there are no pending deletions.
Then still why I am not able to add the cluster database.
Please help.the oms is 10.1.0.4 on linux.
the database i am trying to configure is oracle 10g 2 node RAC on linux.
please let me know if u want any other information . -
EM shows alert "User SYS logged on from node but no entry in SYS.AUD$
Hello,
When i look on the alert page of my databases i see sometimes the following message "User SYS logged on from <node>.
I have setup several audit actions, like "create session" to track sessions.
But in table SYS.AUD$ i see many records, but not the one of user SYS.
Why? Anyone an idea?
Best regards,
hvdtoli understand it is comming from metrics, but i don't understand why i can see it in the sys.aud$ table.
hvdtol -
Can not start the cluster database using srvctl
Created a RAC database with CRS.
When i start the cluster database with srvctl, it appears that the database is started (i made sure using srvctl status), but when i try to login to the database using sqlplus, i get a message 'connected to idle instance'. if i try to start the database from sqlplus, i get message 'requested INSTANCE_NUMBER is busy!.
any thoughts why i can not connect to the database using sqlplus after i start the database using srvctl?
I stop the database using srvctl and started using traditional sqlplus, it will start with out any problem.
what am i missing?check ur oracle_sid,also try to connect as sqlplus sys/****@prod as sysdba
may be this is due to improper setting of init.ora file.
and post ur sqlplus output here.
Thanks
Kuljeet Pal Singh -
Restore a log backup on to database whose recovery model is SIMPLE ?
Hi All,
Today, it was new thing I found when I was testing some log shipping?
Question is can we restore a LOG BACKUP on a database whose recovery model is SIMPLE?
Brief background:
I setup log shipping in SQL Server 2012 SP1 Enterprise Edition between 2 instances. Log shipping is in Standby/readonly mode. So, everything was working very fine...
Now I changed the recovery model of secondary database on 2nd instance from Full to SIMPLE, still the restores are happening very fine. So, is this a normal behavior? other thing is once after restore job is complete the recovery model is getting changed to
FULL automatically on secondary db and I verify it before and after restore job using below query:
select name,recovery_model_desc from sys.databases
Based on my knowledge when a database is in SIMPLE recovery model, we can't perform any log backups on the database and since no log backups, we cant perform Point in Time recovery?
Please clarify what I am seeing is normal ? Also, would like to know what is happening behind the scenes?
Thanks and appreciate your help.
SamHi,
>>Question is can we restore a LOG BACKUP on a database whose recovery model is SIMPLE?
Yes you can restore Log backup on database which is in simple recovery.
You must understand what recovery model is for. Recovery model affects Logging and recovery of a database it does not puts restriction on what can be restore on it. Of course you cannot take log backup of database in simple recovery but you can restore.
Reason being in simple recovery log is truncated after checkpoint (unless something is holding logs like long running transaction). Recovery model also controls the extent of logging which would be done for transaction and hence recovery which you can do
PS: Dont play with logshipping like this which is configured on prod environment
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Hi all,
11.2.0.1
Aix 6.1
I have implemented OS sys log using:
*.audit_file_dest='/var/log/oracle/oracle'
*.audit_sys_operations=TRUE
*.audit_trail='OS'
*.audit_syslog_level='LOCAL5.INFO'
But I can not understand why in the sys log I got lots of DBSNMP users being audited?
Oct 3 16:22:44 PROD-SVR local4:info Oracle Audit[19005494]: LENGTH: "322" SESSIONID:[7] "2087629" ENTRYID:[1] "1" STATEMENT:[1] "1" USERID:[6] "DBSNMP" USERHOST:[7] "PROD-SVR" ACTION:[3] "100" RETURNCODE:[1] "0" COMMENT$TEXT:[100] "Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=xxx.xxx.xxx.xxx)(PORT=41770))" OS$USERID:[6] "oracle" DBID:[9] "175864947" PRIV$USED:[1] "5"
Oct 3 16:22:44 IST-UAT local4:info Oracle Audit[19005494]: LENGTH: "222" SESSIONID:[7] "2087629" ENTRYID:[1] "1" USERID:[6] "DBSNMP" ACTION:[3] "101" RETURNCODE:[1] "0" LOGOFF$PREAD:[1] "0" LOGOFF$LREAD:[2] "58" LOGOFF$LWRITE:[1] "0" LOGOFF$DEAD:[1] "0" DBID:[9] "175864947" SESSIONCPU:[1] "1"
What is causing the sys audit to log lots of the above?
Thanks a lotyou have all you have set.
do you know what is the meaning of *.audit_syslog_level='LOCAL5.INFO'?
You can't configure audit file as "critical" and question why you have critical alerts in your logs.....
for more info:
AUDIT_SYSLOG_LEVEL
https://forums.oracle.com/thread/833592
Don't play with parameters that you don't know or you will end badly. First read, try and question.... -
How to Increase database / log size of mirrored database
Hi All,
I have been asked to increase the default database and log size of two databases, both of which are mirrored.
I have been trying to find out what else I need to do in this case other than the standard resizing.
Are there extra steps I need to perform as these dbs are mirrored (SQL Mirroring)?
FarrenHi Farren,
Based on my test, if you choose to expand the mirrored database by increasing the size of an existing data or log file, you can directly execute the ALTER DATABASE statement on the Principal server as Uri’s post, but before that please make sure the mirroring
status is synchronized. You can check the mirroring configuration and partner status with the following query.
SELECT DB_NAME(DATABASE_ID) 'DBNAME',mirroring_state,
mirroring_state_desc,mirroring_role,mirroring_role_desc,
mirroring_partner_name,mirroring_partner_instance
FROM sys.database_mirroring
WHERE mirroring_guid IS NOT NULL
However, if you choose to expand the mirrored database by adding a new file to the database, you need to perform extra steps as follows.
1. Check the mirroring configuration and partner status with above query.
2. Run the below command on the principal server to break the mirror.
ALTER DATABASE DatabaseName SET PARTNER OFF
3. Create your database file on the principal server.
4. Run a log backup on the principal server.
5. Restore this log backup on the mirrored server using the NORECOVERY and MOVE options.
6. Re-establish mirroring between the servers for this database.
Reference:
Increase the Size of a Database
How to add a database file to a mirrored SQL Server database
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?
Forced me to do a little research.
DBCC SQLPERF(logspace)
See also
http://stackoverflow.com/questions/198343/how-can-i-get-the-size-of-the-transaction-log-in-sql-2005-programmatically
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
Seeburger logging in j2ee\cluster\tmp
Hello all,
We are experiencing massive logging in \j2ee\cluster\tmp. Numerous files (today over 5000 of them) with an .swp extention are created. In the files, the following text can be found:
InhouseDocReader moveNext(): com.seeburger.jucon.dochandler.TradacomDocReader Exception, offset[126(read Segment : STX)]: unexpected Subelement delimiter found : field STDS expected. : Group STX:STDS : Error at casting Group Description.
Maybe a field with the same name is existing...
DESCRIPTION: [not specified] at position [not specified] causes a general exception: [not specified]
Can somebody tell me where these files are comming from and how we can dam the flood of these files?
Kind regards, WilbertHello all,
We are experiencing massive logging in \j2ee\cluster\tmp. Numerous files (today over 5000 of them) with an .swp extention are created. In the files, the following text can be found:
InhouseDocReader moveNext(): com.seeburger.jucon.dochandler.TradacomDocReader Exception, offset[126(read Segment : STX)]: unexpected Subelement delimiter found : field STDS expected. : Group STX:STDS : Error at casting Group Description.
Maybe a field with the same name is existing...
DESCRIPTION: [not specified] at position [not specified] causes a general exception: [not specified]
Can somebody tell me where these files are comming from and how we can dam the flood of these files?
Kind regards, Wilbert -
Cannot remove 2nd log file on AlwaysOn database
Hi all,
I have a database, member of an availability group. This database has 2 log file, I want to remove the unsed secondary log file, I try to run this command to empty the second lofg file:
USE [TEST-AG]
GO
DBCC SHRINKFILE (N'TEST-AG_log_2' , EMPTYFILE)
GO
the command completes successfully, the I run the command to remove the file:
USE [TEST-AG]
GO
ALTER DATABASE [TEST-AG] REMOVE FILE [TEST-AG_log_2]
GO
But this command fails with the following message:
Error 5042: The
file 'TEST-AG_log_2' cannot
be removed because it is not empty.
If I remove the database from availability group the command to remove the 2nd file works, so I can't remove a secondary log file on a database member
of an alwayson availability grup?Hi all,
I have a database, member of an availability group. This database has 2 log file, I want to remove the unsed secondary log file, I try to run this command to empty the second lofg file:
USE [TEST-AG]
GO
DBCC SHRINKFILE (N'TEST-AG_log_2' , EMPTYFILE)
GO
the command completes successfully, the I run the command to remove the file:
USE [TEST-AG]
GO
ALTER DATABASE [TEST-AG] REMOVE FILE [TEST-AG_log_2]
GO
But this command fails with the following message:
Error 5042: The file 'TEST-AG_log_2' cannot
be removed because it is not empty.
If I remove the database from availability group the command to remove the 2nd file works, so I can't remove a secondary log file on a database member of an alwayson
availability grup?
Remove the database from availability group, then remove 2nd file. You have been successfully. Then add back database to the availability group, then create regular backup jobs of the database. -
hi
Can anyone give me a example how to use data clusters and cluster database using export and import statement ?
Thanks in advanceHi,
DATA ITAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
DATA JTAB LIKE SBOOK OCCURS 10 WITH HEADER LINE.
EXPORT ITAB
TO MEMORY ID 'table'.
IMPORT ITAB
TO JTAB FROM MEMORY ID 'table'
Message was edited by: Dhananjay Patil
Maybe you are looking for
-
I am wondering if anyone can help.. I have created a structured indesign document (structured as in tagged for XML import). My problem is the first tagged object is an anchored text box which needs to sit on top of the second anchored tagged picture
-
Issue on Reprint of Purchase Order - Top Prority
Dear Friends, Plz., could some one help me out on this issue. The PO was issued, MIGO done, MIRO was completed. Then the management has decided to reverse the documents. Hence I reversed the FI docs, Cancel the MIGO, then flagged the deletion indicat
-
How can i find my contact card
Im told siri than i was in a relationship and now im trying to remove it. i tried to edit in the contact but there was no relations there. i also tried deleting the contact but siri still recongnize that im in a relationship i want to delete it.
-
Can anyone help me with retreiving datalog files?
I have been working to find a way to read an analog input signal as a waveform, and then attempting to save the data (as just the raw data--like ordered pairs) to a file. Obviously, I would like to be able to read this data later on, but I have been
-
I didn't ask for firefox 5 and there are 2 add ons that it isn't excepting that I can't find
I may have been offered fire fox 5 but did not accept the offer and it is on my computer when I started it up this am and there are 2 add ons it says are not compatable that i tried to locate to remove them and can't find them