Oracle RAC commandeers system logging?
After installing Oracle RAC, there have been no messages or boot info in syslog and dmesg. Does RAC somehow redirect system logging?
Never mind - I found that I misconfigured syslog.conf... DOH!
Edited by: Duck851 on Nov 13, 2008 7:27 PM
Oracle RAC and crossover cable for private network
Similar Messages
-
Error in ONS logs while implmenting FCF on oracle RAC from java program
I have java prog on client machine that uses properties from a property file.While making the connection to the ONS port on the oracle RAC server to implement FCF the program is throwing error as below:
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
and when i checked the ons logs for that node the logs are as follows:
Connection 5,199.xxx.xxxxxx,8200 header RCV failed (Connect
ion reset by peer) coFlags=1002a
These logs are generated only when java program tries to connect else the daemon started without any errors.
But sometime it connets and gives the desired output.
Please advice and do let me know in case you need more information.
Java program on the client machine is as follows..
* Oracle Support Services
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Enumeration;
import java.util.Properties;
import java.util.ResourceBundle;
import oracle.jdbc.pool.OracleConnectionCacheManager;
import oracle.jdbc.pool.OracleDataSource;
public class FCFConnectionCacheExample
private OracleDataSource ods = null;
private OracleConnectionCacheManager occm = null;
private Properties cacheProperties = null;
public FCFConnectionCacheExample() throws SQLException
// create a cache manager
occm = OracleConnectionCacheManager.getConnectionCacheManagerInstance();
Properties props = loadProperties("fcfcache");
cacheProperties = new java.util.Properties();
cacheProperties.setProperty("InitialLimit", (String)props.get("InitialLimit"));
cacheProperties.setProperty("MinLimit", (String)props.get("MinLimit"));
cacheProperties.setProperty("MaxLimit", (String)props.get("MaxLimit"));
ods = new OracleDataSource();
ods.setUser((String)props.get("username"));
ods.setPassword((String)props.get("password"));
ods.setConnectionCachingEnabled(true);
ods.setFastConnectionFailoverEnabled(true);
ods.setConnectionCacheName("MyCache");
ods.setONSConfiguration((String)props.get("onsconfig"));
ods.setURL((String)props.get("url"));
occm.createCache("MyCache", ods, cacheProperties);
private Properties loadProperties (String file)
Properties prop = new Properties();
ResourceBundle bundle = ResourceBundle.getBundle(file);
Enumeration enumlist = bundle.getKeys();
String key = null;
while (enumlist.hasMoreElements())
key = (String) enumlist.nextElement();
prop.put(key, bundle.getObject(key));
return prop;
public void run() throws Exception
Connection conn = null;
Statement stmt = null;
ResultSet rset = null;
String sQuery =
"select sys_context('userenv', 'instance_name'), " +
"sys_context('userenv', 'server_host'), " +
"sys_context('userenv', 'service_name') " +
"from dual";
try
conn = null;
conn = ods.getConnection();
stmt = conn.createStatement();
rset = stmt.executeQuery(sQuery);
rset.next();
System.out.println("-----------");
System.out.println("Instance -> " + rset.getString(1));
System.out.println("Host -> " + rset.getString(2));
System.out.println("Service -> " + rset.getString(3));
System.out.println("NumberOfAvailableConnections: " +
occm.getNumberOfAvailableConnections("MyCache"));
System.out.println("NumberOfActiveConnections: " +
occm.getNumberOfActiveConnections("MyCache"));
System.out.println("-----------");
catch (SQLException sqle)
while (sqle != null)
System.out.println("SQL State: " + sqle.getSQLState());
System.out.println("Vendor Specific code: " +
sqle.getErrorCode());
Throwable te = sqle.getCause();
while (te != null) {
System.out.print("Throwable: " + te);
te = te.getCause();
sqle.printStackTrace();
sqle = sqle.getNextException();
finally
try
rset.close();
stmt.close();
conn.close();
catch (SQLException sqle2)
System.out.println("Error during close");
public static void main(String[] args)
System.out.println(">> PROGRAM using JDBC thin driver no oracle client required");
System.out.println(">> ojdbc14.jar and ons.jar must be in the CLASSPATH");
System.out.println(">> Press CNTRL C to exit running program\n");
try
FCFConnectionCacheExample test = new FCFConnectionCacheExample();
while (true)
test.run();
Thread.currentThread().sleep(10000);
catch (InterruptedException e)
System.out.println("PROGRAM Ended by user");
catch (Exception ex)
System.out.println("Error Occurred in MAIN");
ex.printStackTrace();
Some of the info i have deleted intensionally as this is confidential
Property file is as follows
# properties required for test
username=test
password=test
InitialLimit=10
MinLimit=10
MaxLimit=20
onsconfig=nodes=RAC-node1:port,RAC-node2:port
url=jdbc:oracle:thin:@(DESCRIPTION= \
(LOAD_BALANCE=yes) \
(ADDRESS=(PROTOCOL=TCP)(HOST=RAC-node1)(PORT=1521)) \
(ADDRESS=(PROTOCOL=TCP)(HOST=RAC-node1)(PORT=1521)) \
(CONNECT_DATA=(service_name=RAC_SERVICE)))Hi;
Please check below note:
Link Errors While Installing CRS & RAC Database software [ID 438747.1]
Codeword File $TIMEBOMB_CWD,/opt/aCC/newconfig/aCC.cwd Missing Or Empty [ID 552893.1]
Regard
Helios -
Putting a Oracle RAC in to archive log mode??
Our RAC is a 10gR2 Three(3) node RAC with a SAN as the shared storage. cluster is installed on linux. at the moment the RAC is in noarchieve log mode.
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/app/oracle/product/10.2.
0/db_1/dbs/arch
Oldest online log sequence 665
Current log sequence 666
we created raw partitions in SAN and use ASM to manage shared storage.
when running DBCA at "specify locations for the database files to be created" step we selected "use oracle managed files" and gave database area = +DATA/
then at choose the recovery options for the database" step we ticked specify flash recovery area and gave Flash Recovery AREA = +BACKUP/ and flash recovery area = 10240 MB. we didnt click "enable archiving" option. hence the RAC DB is in NOARCHIEVELOG mode.
i found some guide to put RAC in archive log mode which i have given below....
ALTER SYSTEM SET log_archive_start=TRUE SCOPE=spfile;
ALTER SYSTEM SET log_archive_dest_1='location=/u01/oradata/MYSID/archive/' SCOPE=spfile;
ALTER SYSTEM SET log_archive_format='arch_%t_%s.arc' SCOPE=spfile;
Since we need to mount the database in exclusive mode we must also alter the following parameter:
ALTER SYSTEM SET cluster_database=FALSE SCOPE=spfile;
From the command line we can stop the entire cluster using:
srvctl stop database -d MYSID
With the cluster down we can connect to a single node and issue the following commands:
STARTUP MOUNT;
ARCHIVE LOG START;
ALTER DATABASE ARCHIVELOG;
ALTER SYSTEM SET cluster_database=TRUE SCOPE=spfile;
SHUTDOWN IMMEDIATE;
Notice that the CLUSTER_DATABASE parameter has been reset to it's original value. Since the datafiles and spfile are shared between all instances this operation only has to be done from a single node.
From the command line we can now start the cluster again using:
srvctl start database -d MYSID
my main question is about the setting of
ALTER SYSTEM SET log_archive_dest_1='location= ????? ' SCOPE=spfile;
since i have set +BACKUP/ as the FRA during installation how should i define the location of log_archive_dest_1???
many thanks in advance.
regards
Dilanmany thanks for the replies
will the command you posted send the archive logs to the "+BACKUP/" location in my SAN.
if yes how does oracle know that USE_DB_RECOVERY_FILE_DEST = BACKUP/ in my SAN. or how do i set oracle to use BACKUP/ as the USE_DB_RECOVERY_FILE_DEST??
im a newbie to RAC so pls bear with me. also at the moment i get the following outputs from my database.... pls note the bold part below, is the archive destination pointing to a location in my local server?
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /u01/app/oracle/product/10.2.0/db_1/dbs/arch
Oldest online log sequence 665
Current log sequence 666
SQL> show parameter db_recovery;
NAME TYPE VALUE
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
SQL> show parameter archive
NAME TYPE VALUE
archive_lag_target integer 0
log_archive_config string
log_archive_dest string
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_2 string
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
log_archive_dest_6 string
log_archive_dest_7 string
NAME TYPE VALUE
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string enable
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string enable
log_archive_dest_state_3 string enable
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
NAME TYPE VALUE
log_archive_dest_state_9 string enable
log_archive_duplex_dest string
log_archive_format string %t_%s_%r.dbf
log_archive_local_first boolean TRUE
log_archive_max_processes integer 2
log_archive_min_succeed_dest integer 1
log_archive_start boolean FALSE
log_archive_trace integer 0
remote_archive_enable string true
standby_archive_dest string ?/dbs/arch -
The Backup Process was killed by system when I Backup Oracle RAC
HI all:
I use RMAN and MML to backup my Oracle Rac. When it backup 60GB (it total 300GB),the oracle backup process was killed by the system.
the follow is the system log from syslog.log file:
Jan 5 10:54:57 hpux01 vmunix: Pid 24142 was killed due to failure in writing the signal context - possible stack overflow.
And the follow is the trc log from Oracle:
/ora_backup/szyy/orcl_ora_24142.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.2.0/racdb
System name: HP-UX
Node name: hpux01
Release: B.11.31
Version: U
Machine: ia64
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 131
Unix process pid: 24142, image: oracleorcl@hpux01
*** 2012-01-05 09:55:32.576
*** ACTION NAME:(0000067 STARTED16) 2012-01-05 09:55:32.567
*** MODULE NAME:(backup incr datafile) 2012-01-05 09:55:32.567
*** SERVICE NAME:(kmyb) 2012-01-05 09:55:32.567
*** SESSION ID:(4044.1365) 2012-01-05 09:55:32.567
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 09:58:59.396
*** ACTION NAME:(0000071 STARTED16) 2012-01-05 09:58:59.396
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 09:59:28.666
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:00:27.749
*** ACTION NAME:(0000073 STARTED16) 2012-01-05 10:00:27.749
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:04:40.215
*** ACTION NAME:(0000077 STARTED16) 2012-01-05 10:04:40.215
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:05:20.131
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:06:49.812
*** ACTION NAME:(0000079 STARTED16) 2012-01-05 10:06:49.812
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:07:23.498
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:09:06.092
*** ACTION NAME:(0000081 STARTED16) 2012-01-05 10:09:06.091
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:11:26.153
*** ACTION NAME:(0000083 STARTED16) 2012-01-05 10:11:26.153
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:12:50.144
*** ACTION NAME:(0000085 STARTED16) 2012-01-05 10:12:50.144
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:15:09.731
*** ACTION NAME:(0000087 STARTED16) 2012-01-05 10:15:09.731
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:17:47.068
*** ACTION NAME:(0000089 STARTED16) 2012-01-05 10:17:47.068
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:18:29.698
*** ACTION NAME:(0000091 STARTED16) 2012-01-05 10:18:29.698
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:20:32.236
*** ACTION NAME:(0000093 STARTED16) 2012-01-05 10:20:32.236
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:20:57.822
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:23:11.251
*** ACTION NAME:(0000095 STARTED16) 2012-01-05 10:23:11.251
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:25:21.496
*** ACTION NAME:(0000097 STARTED16) 2012-01-05 10:25:21.496
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:26:40.743
*** ACTION NAME:(0000099 STARTED16) 2012-01-05 10:26:40.743
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:26:52.331
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:27:11.566
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:27:24.826
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:31:00.760
*** ACTION NAME:(0000103 STARTED16) 2012-01-05 10:31:00.759
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:31:25.595
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:31:45.456
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:33:58.612
*** ACTION NAME:(0000105 STARTED16) 2012-01-05 10:33:58.612
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:35:13.323
*** ACTION NAME:(0000107 STARTED16) 2012-01-05 10:35:13.323
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:37:59.764
*** ACTION NAME:(0000109 STARTED16) 2012-01-05 10:37:59.764
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:42:27.364
*** ACTION NAME:(0000113 STARTED16) 2012-01-05 10:42:27.364
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:46:54.632
*** ACTION NAME:(0000117 STARTED16) 2012-01-05 10:46:54.632
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:47:52.295
*** ACTION NAME:(0000119 STARTED16) 2012-01-05 10:47:52.295
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:52:31.041
*** ACTION NAME:(0000123 STARTED16) 2012-01-05 10:52:31.041
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:54:20.123
*** ACTION NAME:(0000125 STARTED16) 2012-01-05 10:54:20.123
WARNING:Oracle process running out of OS kernel I/O resources
*** 2012-01-05 10:54:41.410
WARNING:Oracle process running out of OS kernel I/O resources
WARNING:Oracle process running out of OS kernel I/O resourcesThis was a bug in 10.2.0.3. It is fixed in 10.2.0.5. See MOS note 748607.1
-
Tracking oracle database activities in security/system logs of windows server
Can database activity like create or drop tables and packages be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
Can purging of oracle log, n case the file has become big or even tempered be tracked in the security/system logs of windows 2003 server for the oracle database 10.2.0.4?
dhomyaHi Dhomya,
I am not familiar with Oracle database, though you may try to enable file system auditing:
Audit object access
https://technet.microsoft.com/en-us/library/cc776774(v=ws.10).aspx
Apply or modify auditing policy settings for an object using Group Policy
https://technet.microsoft.com/en-us/library/cc757864(v=ws.10).aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Does /sapmnt need in cluster file system(SAP ECC 6.0 with oracle RAC)
We are going to be installing SAP with Oracle 10.2.0.4 RAC on Linux SuSE 10 and OCFS2. The Oracle RAC documentation states:
You must store the following components in the cluster file system when you use RAC
in the SAP environment:
- Oracle Clusterware (CRS) Home
- Oracle RDBMS Home
- SAP Home (also /sapmnt)
- Voting Disks
- OCR
- Database
What I want to ask is if I really need put SAP Home(also /sapmnt) on cluster file system? I will build a two nodes oracel 10g RAC and I also have another two nodes to install SAP CI and DI. My orginial think is sapmnt is a NFS share, and mount to all four nodes(RAC node and CI/DI), and all oracle stuff was on OCFS2(only two rac nodes are OCFS), anybody can tell me if SAP Home(also /sapmnt) can be NFS mount not OCFS2, thanks.
Best regards,
PeterHi Peter,
I don't think you need to keep /sapmnt in ocfs2 . Reason any file system need to be in cluster is,in RAC environment, data stored in the cache of one Oracle instance to be accessed by any other instance by transferring it across the private network and preserves data integrity and cache coherency by transmitting locking and other synchronization information across cluster nodes.
AS this applies to redo files, datafiles and control files only , you should be fine with nfs mount of /sapmnt sharing across and not having ocfs2.
-SV -
Oracle RAC on two different configuration systems
Can we install Oracle RAC (Standard Edition) on severs having different configuration -
1. Server 1 - IBM x3850 - 2 processors occupied, 128 GB RAM, windows server 2008 R2 64 bit
2. Server 2 - IBM 3650 - 2 processors, 64 GB RAM, windows server 2008 R2 64 bit
Thanks & Regards931577 wrote:
Dear Billy
The storage will be on IBM SAN with fibre channel connectivity for both the servers.
The node A will be only for production and Node B for non production. Pl suggest your recommendations.So, you will configure node1 for database1(instance1) and node2 for database2(instance1)? So much for fail-over... For your proposed configuration, why waste the extra RAC license if you are only going to have the prod db running on a single node? Also Windows???? And you are paying for Windows SERVER licenses as well??? Why? Linux (even Oracle Enterprise Linux) is free and the support cost are far less than for Windows. It is slow and is a nightmare to manage. Learn Linux or AIX or something. I don't do Windows and I certainly would never deploy RAC on Windows. (My deployment of RAC clusters now stands > 75 clusters with the largest at 250TB and NONE of them on Windows).
This is more like RAC-One than RAC. I have a problem using a single RAC cluster to support both my production and non-production work. It also negates the primary reason to use RAC - high availability. In your proposed solution, if your production db goes down on node1(instance1) your application is dead. In RAC, when the middle-tier attempts to reconnect, it would simple connect to a surviving node. You will not have that feature in your proposed configuration.
I also would object to the notion of having production database in the same set of DiskGroups (ASM) or file systems as my non-production data. There are too many times where I have seen a someone execute a process that brought the entire system down due to high I/O - now, if you have this configuration, it is conceivable that your non-prod I/O could affect your production (SAN switch overload, Storage array overload etc...). And all of this does not include the "oops-factor". That's what happens when you thought you were deleting data files for your non-prod database that you want to restore and "accidently" delete production data files.
You asked for suggestions --
1) buy more hardware
2) have 1 standalone for non-prod
3) have 2 nodes for RAC - deploy production only here.
>
We are on windows as all our other servers are on Windows.<rude remark removed>
>
>
ThanksEdited by: onedbguru on May 4, 2012 3:26 PM -
Oracle RAC binaries on vxfs shared file system
Hi,
Is it possible to install oracle binaries on vxfs cluster file system for oracle RAC under sun cluster? Because as I know we can not use vxfs cluster file system for our oracle datafiles.
TIAThe above post is incorrect. You can have a cluster (global) file system using VxVM and VxFS. You do not need to have VxVM/CVM for this. A cluster file system using VxVM+VxFS can be used for Oracle binaries but cannot be used for Oracle RAC data files where they are updated from both nodes simultaneously.
If further clarification is needed, please post.
Tim
--- -
Hello Collegeus
Our company buy server IBM Xseries 3860 for to store databases (95%, qty=12 databases) of ERP and BI we have, to ensure the performance of the solution going to install oracle rac, but do not know if mandatory to have a CLUSTER to do this and do not find clear documentation on this topic.
This license is needed?, that another way I can do without affecting my performace?
our system is suse linux 11, and oracle 10.2.0.4
can you help?
Thanks
ErikaI suggest you must go through SAP on Oracle and follow then link SAP on Oracle Real Application Clusters (RAC)
-
Oracle´s File system over GPFS on Oracle RAC
Hi all,
I would like to know which Oracle´s File systems should be over GPFS on a Oracle RAC implementation.
Regards,
Sebastian.
Edited by: user12549343 on 02-feb-2010 9:10You didn't provide info about DB relase and OS.
But probably you are talking about AIX OS (I can't see any reason to use GPFS on Linux for RAC and I don't remember if this FS was/is supported for RAC on Linux (check Certification Matrix for this information)). Oracle is provides only one shared "filesystem" for AIX and it is ASM.
Now it depends on DB version what options you can use.
Till 11g R2 you have to store OCR and Voting disks outside of ASM (So you needed to use either RAW devices or Cluster Filesystem which GPFS is). Since 11g R2 you can store these disks in ASM directly.
On Linux if you don't want to use ASM to store database files you can use OCFS2 clusterfile system. -
SYSTEM HARDWARE REQUIREMENT FOR ORACLE RAC +ORACLE GRID INFRASTRUCTURE
Hi Guru's,
Can anyone of you explain me what exactly the system H/W requirement for Installing Oracle 11gR2 Grid Infrastructure along with Oracle RAC.
I already have 8GB RAM,i3 Processor.If you like to install RAC on vmware, this 8gb memory enough. you can allocate 2gb for one node and also other. So total 4GB enough for RAC installation.
Refer
Oracle 11gR2 two node Real application cluster installation step by step guide on linux using VMware Server | DBA -
Getting error when try to backup oracle rac to another location
Hi there,
I am attempting to backup database to another location from a Oracle RAC database version 11gr2. Here is my script:
#!/bin/ksh
export ORACLE_SID=vvsms1
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH; export PATH
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log append <<EOF
RUN {
CROSSCHECK BACKUP;
CROSSCHECK ARCHIVELOG ALL;
ALLOCATE CHANNEL CHANNEL1 TYPE DISK FORMAT '/home/oracle/backup/vvsms/backup_%U';
BACKUP INCREMENTAL LEVEL 0 TAG 'incr_vvsms' DATABASE;
BACKUP ARCHIVELOG ALL;
DELETE OBSOLETE;
RELEASE CHANNEL CHANNEL1;
EXIT;
EOF
I write it into a .sh file and set crontab to run it. But when it run i get the error like these:
Starting backup at 22-OCT-12
channel CHANNEL1: starting incremental level 0 datafile backup set
channel CHANNEL1: specifying datafile(s) in backup set
input datafile file number=00002 name=+DISK2/vvsms/datafile/sysaux.289.794242439
input datafile file number=00006 name=+DISK2/vvsms/datafile/ts_service.dbf
input datafile file number=00007 name=+DISK2/vvsms/datafile/ts_viviet.dbf
input datafile file number=00008 name=+DISK2/vvsms/datafile/viviet.dbf
input datafile file number=00009 name=+DISK2/vvsms/datafile/ts_vivietct_primary.dbf
input datafile file number=00003 name=+DISK2/vvsms/datafile/undotbs1.290.794242445
input datafile file number=00001 name=+DISK2/vvsms/datafile/system.288.794242429
input datafile file number=00004 name=+DISK2/vvsms/datafile/undotbs2.292.794242453
input datafile file number=00005 name=+DISK2/vvsms/datafile/users.293.794242455
channel CHANNEL1: starting piece 1 at 22-OCT-12
released channel: CHANNEL1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on CHANNEL1 channel at 10/22/2012 01:50:16
ORA-19504: failed to create file "/home/oracle/backup/vvsms/backup_2anobqu5_1_1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
I don't know what i'm wrong? The location is correct ("/home/oracle/backup/vvsms/).
Please suggest me some things about it. What do i need to do?
Thanks in advance!
P/s: Sorry for my bad English./u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log appendThis line can be your problem.
As this database is a RAC and your are using a service with load balance "vvsms" and "/home/oracle/backup/vvsms" is not a shared location. RMAN is starting a session on Other node where "/home/oracle/backup/vvsms" does not exists.
Try change it :
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@vvsms log /home/oracle/log_rman/vvsms.log appendTo this (using Easy Connect Method):
/u01/app/oracle/product/11.2.0/dbhome_1/bin/rman target sys/viviet@localhost:1521/VVSMS log /home/oracle/log_rman/vvsms.log appendWhere:
localhost: your local node
VVSMS : is the service of database
Also check if "/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora" have configured the line "NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)"
P.S : When RMAN start a session it show where is logged, check on logs what instance RMAN was logged.
HTH,
Levi Pereira -
Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0
Hello,
Maybe you can help me (new on RMAN backup) in doing this.
I have configured a single Oracle 10g database to have backup with RMAN with following steps:
1. $ mkdir $ORACLE_BASE/rman_scripts
2. $ mkdir $ORACLE_BASE/logs
3. $ mkdir $ORACLE_BASE/tracking
4. $ mkdir $ORACLE_BASE/c_backup
5. $ sqlplus sys/<password> as sysdba
6. SQL> alter system set db_recovery_file_dest_size = 50G scope=both;
7. SQL> alter system set db_recovery_file_dest='${ ORACLE_BASE}/flash_recovery_ area' scope=both;
8. SQL> alter system set log_archive_dest_10='location= use_db_recovery_file_dest';
9. SQL> shutdown immediate
10. SQL> startup nomount
11. SQL> alter database archivelog;
12. SQL> alter database open;
13. SQL> alter database enable block change tracking using file '${ORACLE_BASE}/tracking/rman_ change_track.f';
14. $ rman target /
15. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
TO '/var/opt/oracle/flash_ recovery_area/ORCL/c_backup/% F';
16. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
17. RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
18. RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
19. RMAN> exit
I need to configure incremental backup with RMAN on a two node Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0 installation.
We also use ASM to store database files, and have Oracle software installed on separate file systems (two Oracle roots for Node1 and Node2).
I have following questions:
1) where to put Flash Recovery Area (FRA)?
I saw recommendations to put FRA on the ASM, is this the best way to do it?
2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
3) Is it possible/recommended to run RMAN from Node1 only?
Below is the script used to run RMAN on the normal Oracle database (without RAC) which I need to change :
=============================================================================================
2.0 Oracle backup script: /opt/app/oracle/rman_scripts/backup.sh
Use this for daily backups, possiblly as a cron job.
Once a week run this: /opt/app/oracle/rman_scripts/backup.sh FULL
All other days of the week: /opt/app/oracle/rman_scripts/backup.sh INCREMENTAL
Note: You may have to change ORACLE_SID, ORACLE_BASE below to match your database.
=============================================================================================
#!/usr/bin/ksh
ORACLE_SID=orcl
ORACLE_BASE=/opt/app/oracle
ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/db_1
PATH=${ORACLE_HOME}/bin:/usr/bin
LOGDIR=${ORACLE_BASE}/logs
LOGFILE=${LOGDIR}/rman.log
if [[ $# < 1 ]]
then
echo "usage: backup.sh FULL|INCREMENTAL"
exit;
fi
BACKUPTYPE=${1}
full='FULL'
incremental='INCREMENTAL'
if [[ $BACKUPTYPE == $full ]]
then
$ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
run {
backup database;
SQL 'alter system archive log current';
backup archivelog all;
delete noprompt obsolete;
exit;
eof
echo ''
fi
if [[ $BACKUPTYPE == $incremental ]]
then
$ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
run {
backup database;
backup incremental level 1 database;
SQL 'alter system archive log current';
backup archivelog all;
delete noprompt obsolete;
exit;
eof
echo ''
fiHi [email protected],
Q1) where to put Flash Recovery Area (FRA)?
A1) With RAC: on the shared storage
I saw recommendations to put FRA on the ASM, is this the best way to do it?
If you want your backups to be available for both nodes you have to use shared storage or tape using an mml library.
So if you want to use the FRA for rman backups and the database is on ASM just make ASM the standard for the FRA as well.
Q2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
A2) Than you cannot recover in case Node1 is down. Best would be to send your storage admin to a training course so he can manage the clustered raw devices needed for ASM.
Q3) Is it possible/recommended to run RMAN from Node1 only?
A3) No see A2.
Regards,
Tycho -
ASM pfile lost in Oracle RAC 11gr2
Hello Gurus,
I am new to Oracle RAC 11gr2 and facing some issues. our spfile/pfile for asm instance is lost and I am not able to startup the asm instance.
Environment is as below:
RAC 2 nodes
Oracle RAC 11gr2
Enterprise Linux Server release 5.5 (Carthage)
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/init+ASM1.ora'
Is there any way to recover the spfile/pfile ?
Also getting following error while try to connect " sqlplus / as sysasm"
$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.1.0 Production on Sun Mar 27 11:26:02 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name:
Thanks and Regards,Hi,
Do we need to Set variable ORACLE_HOME properly (Grid Home) while starting RDBMS instance?
e.g ORACLE_HOME=/u01/app/11.2.0/grid*I recommend you set ORACLE_HOME properly for each Oracle Installation when you use SQLPLUS.
i.e: cat /etc/oratab
orcl:/u01/app/oracle/product/11.2.0/db_1
db10g:/u01/app/oracle/product/10.2.0/db_1
+ASM1:/u01/app/11.2.0/gridAlso you can startup/shutdown our database with SQLPLUS using ORACLE NET*, but it must be configured properly.
My recommendation <s>is always</s> use SRVCTL and CRSCTL to manage to your environment. Track all the process of initialization processes through the logs using ADRCI utility (only 11.1 or later).
When use SRVCTL or CRSCTL to manage I recomend you use (GRID HOME).
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-16038: log 3 sequence# 1067 cannot be archived
ORA-19809: limit exceeded for recovery files
ORA-00312: online log 3 thread 2: '+FRA/yyy/onlinelog/group_3.259.738489481'
SQL>I give to you three options:
1° - Add more asmdisk on Diskgroup +FRA
2° - Make backup of all archivelog using RMAN and option delete input (i.e backup archivelog delete all input;)
3° - If this database is for TEST ONLY and you not need backup or recovery of then you can delete all archivelog using RMAN (i.e delete archivelog all;)
I recommend you create routine of backups of the database and archivelog to prevent this area becomes exhausted.
If you need the database in archivelog but it is only to test then create routine to delete archivelogs periodically.
If you dont need the database in archivelog, then just disable it.
Regards,
Levi Pereira -
Oracle RAC 10.2G reboots node every 45 minutes
Hello:
- We have installed Oracle RAC 10.2G for Solaris X86 ( 64 bit ).
- On one node, there are no issues. But the other node ( I think )
is being rebooted by CRS every 45 minutes or so.
- Is this issue caused by some misconfiguration I did during the install ?
- Or is there a patch available to fix this ?
- Has anyone else encountered this problem ?
Thanks
jlemHello:
- I re-installed Oracle RAC. The nodes were only rebooted once so far.
So, the second install may be ok. If not, I have provided answers to the first email reply.
- Any help given is most welcome. In meantime, I will continue searching the oracle forums
for solutions.
- My environment is:
- both nodes are running under vmware ESX server version 3.0.1
- the shared storage for OCR and Voting Disk is a raw shared device under vmware
- both nodes are using Solaris X86 5.10 update 5
- Oracle version is: 10.2.0.3 ( patched from version 10.2.0.1 )
- My public network configuration is:
node 1:
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.20.1.74 netmask ffff0000 broadcast 10.20.255.255
ether 0:c:29:3a:45:a9
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.20.1.77 netmask ffff0000 broadcast 10.20.255.255
node 2:
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.20.1.75 netmask ffff0000 broadcast 10.20.255.255
ether 0:c:29:2b:db:90
e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.20.1.78 netmask ffff0000 broadcast 10.20.255.255
- My private network configuration is:
node 1:
e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255
ether 0:c:29:3a:45:b3
node 2:
e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.2 netmask ffffff00 broadcast 192.168.0.255
ether 0:c:29:2b:db:9a
- My storage solution is:
- 3 virtual shared SCSI hard disks ( each 500 MB in size )
- My log files are:
- /var/adm/messages
- doesn't report much only the following:
Nov 12 10:57:05 saucer nfs4cbd[328]: [ID 867284 daemon.notice] nfsv4 cannot determine local hostname binding for transport
tcp6 - delegations will not be available on this transport
Nov 12 10:57:21 saucer savecore: [ID 570001 auth.error] reboot after panic: forced crash dump initiated at user requestNov 12 10:57:21 saucer savecore: [ID 748169 auth.error] saving system crash dump in /var/crash/saucer/*.2Nov 12 10:57:41 saucer root: [ID 702911 user.error] Oracle Cluster Ready Services disabled by administrator.Nov 12 10:57:54 saucer rootnex: [ID 349649 kern.info] xsvc0 at rootNov 12 10:57:54 saucer genunix: [ID 936769 kern.info] xsvc0 is /xsvc
- ocssd.log file for node1 indicates that node2 was evicted for impeding a reconfig. Details are:
[ CSSD]2008-11-12 10:55:43.700 [15] >TRACE: clssnmPollingThread: node saucer (2) is impending reconfig
[ CSSD]2008-11-12 10:55:43.700 [15] >WARNING: clssnmPollingThread: node saucer (2) at 90% heartbeat fatal, eviction in 0
.973 seconds
[ CSSD]2008-11-12 10:55:44.679 [15] >TRACE: clssnmPollingThread: node saucer (2) is impending reconfig
[ CSSD]2008-11-12 10:55:44.679 [15] >TRACE: clssnmPollingThread: Eviction started for node saucer (2), flags 0x000d, s
tate 3, wt4c 0
[ CSSD]2008-11-12 10:55:44.690 [17] >TRACE: clssnmDoSyncUpdate: Initiating sync 3
[ CSSD]2008-11-12 10:55:44.690 [17] >TRACE: clssnmDoSyncUpdate: diskTimeout set to (27000)ms
[ CSSD]2008-11-12 10:55:44.691 [17] >TRACE: clssnmSetupAckWait: Ack message type (11)
[ CSSD]2008-11-12 10:55:44.691 [17] >TRACE: clssnmSetupAckWait: node(1) is ALIVE
[ CSSD]2008-11-12 10:55:44.691 [17] >TRACE: clssnmSetupAckWait: node(2) is ALIVE
[ CSSD]2008-11-12 10:55:44.691 [17] >TRACE: clssnmSendSync: syncSeqNo(3)
- node2 ocssd.log does not indicate the problem. See below for details:
[ CSSD]2008-11-12 10:52:34.731 [11] >TRACE: clssgmClientConnectMsg: Connect from con(da8410) proc(dab900) pid() proto(
10:2:1:1)
[ CSSD]2008-11-12 10:53:37.305 [11] >TRACE: clssgmClientConnectMsg: Connect from con(da8410) proc(dab900) pid() proto(
10:2:1:1)
[ CSSD]2008-11-12 10:54:40.515 [11] >TRACE: clssgmClientConnectMsg: Connect from con(da8410) proc(dab900) pid() proto(
10:2:1:1)
[ CSSD]2008-11-12 11:18:09.997 >USER: Oracle Database 10g CSS Release 10.2.0.3.0 Production Copyright 1996, 2004 Orac
le. All rights reserved.
[ CSSD]2008-11-12 11:18:09.997 >USER: CSS daemon log for node saucer, number 2, in cluster crs
[ clsdmt]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=saucerDBG_CSSD))
[ CSSD]2008-11-12 11:18:10.016 [1] >TRACE: clssscmain: local-only set to false
[ CSSD]2008-11-12 11:18:10.031 [1] >TRACE: clssnmReadNodeInfo: added node 1 (flying) to cluster
[ CSSD]2008-11-12 11:18:10.042 [1] >TRACE: clssnmReadNodeInfo: added node 2 (saucer) to cluster
[ CSSD]2008-11-12 11:18:10.057 [5] >TRACE: clssnm_skgxnmon: skgxn init failed
[ CSSD]2008-11-12 11:18:10.057 [1] >TRACE: clssnm_skgxnonline: Using vacuous skgxn monitor
- ORACLE VERIFY: cluvfy was run on node2 resulting with the following:
bash-3.00$ ./cluvfy comp ocr -n all -verbose
Verifying OCR integrity
Checking OCR integrity...
Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations.
Uniqueness check for OCR device passed.
Checking the version of OCR...
OCR of correct Version "2" exists.
Checking data integrity of OCR...
Data integrity check for OCR passed.
OCR integrity check passed.
Verification of OCR integrity was successful.
bash-3.00$
Thanks
jlem
Maybe you are looking for
-
How to update a custom field in declarative workflow with VS 2013
Hello, How to update a custom field in declarative workflow with VS 2013 any help would be appreciated!!!!! Thanks regards, Vignesh.
-
When trying to purchase an app an error message comes up saying the info I entered does not match my banking info. The odd thing is, the $1.00 hold is shown immediately on my credit card acct. , so I obviously did enter it correctly. Tried 5 times. A
-
Have this small script (my first attempt in Scripting), which is loaded with Acrobat 9 at startup. app.addMenuItem({ cName: "Gem &KMS-skrivelse", cParent: "File", cExec: "SaveAs('registreringsmeddelelse', 'produkter/')", nPos: 3 }); app.addMenuItem({
-
ABAP how to suppress Application toolbar on the screen
Hi all As far as my knowledge is concerned I know we can't suppress the application toolbar in module pool programming (in the screen painter) but if is there any way to do that ? Regards, Mahesh
-
Elements 11 organiser disappeared?
Using PS elements 11 on mac bought on app store after a trial, have uninstalled redownloaded and lost organiser? Can I get it back? in the middle of a graphics project Urgent! Help Many thanks I am desperate have a great day! Ivan