Identify the storage of our RAC database
I am new to RAC - We have setup of 11gr2 two node rac - I am doing a sanity check like below what is our storage How does we identify our shared disks defined (local, SAN, iSCSI)?
967023 wrote:
I am new to RAC - We have setup of 11gr2 two node rac - I am doing a sanity check like below what is our storage How does we identify our shared disks defined (local, SAN, iSCSI)?
Local disks could not be used in the case of RAC as the last needs shared.
1. Identify disks used for ASM:
asmcmd lsdsk
2. Disks may be presented through HBA, iSCSI, dNFS.
3. Disks may be presented with a single path. And i.1 will give necessary information.
Or multipath may be used.
4. List disks with:
ls -l /dev/disk/by-id
Path like
lrwxrwxrwx 1 root root 24 Mar 14 02:25 scsi-1ATA_VBOX_HARDDISK_VB3ee53981-f184882e -> ../../oracleasm/OCRVOTE3
will indicate shared VBox disk
ls -l /dev/disk/by-path
Paths like
lrwxrwxrwx 1 root root 9 Feb 16 11:43 ip-xx.xx.xx.xx:7260-iscsi-iqn.2010-06.com.purestorage:flasharray.123456qwerty-lun-1 -> ../../sde
will indicate iSCSI
iscsiadm -m session -P 1
may give additional information in the case of iSCSI
multipath -ll
may give additional information in the case of HBA.
P.S.
Checked against OL5.
Similar Messages
-
Will Nodeapps register the listener service of RAC database?
Hi Friends,
In 10g RAC will Nodeapps register the listener service of RAC database?
because if i bring down nodeapps the listenener is also going down
ora....C1.lsnr application OFFLINE OFFLINE
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application OFFLINE OFFLINE
ora.rac1.vip application OFFLINE OFFLINE
Regards,
DBHi,
This is expected behavior. The default listener (listener_nodename) could be starte and stopped with nodeapps.
srvctl listener is mainly for specific listeners that are other than default.
http://docs.oracle.com/cd/B19306_01/rac.102/b14197/whatsnew.htm#sthref6
If you create additional Listeners with non-default names, in other words, with names other than the name listener_nodename where nodename is the name of the node on which the Listener resides, then you must start and stop these Listeners with SRVCTL commands.
http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm#i1009606
http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm#CDCEIDFH -
How to identify the last usage of 8i database?
Hi All,
We are in process of decommissioning our old databases. I need to know the last usage of a 8i database.
Is the any v$ views or DBA views to identify that?
Thanks
ArunaIf you are on Unix , "ipcs -mt" should show the time of the last attach to the shared memory segment.
When a user session connects to the SGA via a dedicated server process, it actually "attaches" to the shared memory segment.
Check the man pages (with "man ipcs") for the command line options on your particular platform.
Hemant K Chitale
http://hemantoracledba.blogspot.com -
How to identify the patches applied on my database server
Dear Team,
we want move my database server to other system, i need to install same oracle server version and apply those patches which are applied in the current system and then move the database.
could you please let me know, how to identify what all patches applied on the current database server.
Oracle version is : 10.2.0.3
O/S Windows Server 2003 SP2
Thanks in advance
AjHow to know the patches applied on DB?
-
Check the case in our production database and development
at our end development : -
TABLE NAME NUM ROWS BLOCKS AVG ROW LEN CACHE SAMPLE SIZE LAST ANALYZED
CP_BAGS 4,206,402 195,932 323 N 4,206,402 07/08/2007
CP_DAILY_INV_ACTIVITY 5,549,944 95,777 119 N 5,549,944 07/08/2007
at production :-
TABLE NAME NUM ROWS BLOCKS AVG ROW LEN CACHE SAMPLE SIZE LAST ANALYZED
CP_BAGS 4,532,370 104,659 322 N 453,237 08/08/2007
CP_DAILY_INV_ACTIVITY 6,267,560 55,007 119 N 626,756 08/08/2007
we got difference in sample size ..and block's used...index statistics :-
at our end development :-
INDEX NAME TABLE NAME BLEVEL LEAF BLOCKS DISTINCT KEYS AVG LEAF BLOCKS PER KEY AVG DATA BLOCKS PER KEY CLUSTERING FACTOR NUM ROWS LAST ANALYZED
CP_BAGS_N11 CP_BAGS 2 14,966 260,756 1 6 1,698,685 4,206,402 07/08/2007
at production :-
INDEX NAME TABLE NAME BLEVEL LEAF BLOCKS DISTINCT KEYS AVG LEAF BLOCKS PER KEY AVG DATA BLOCKS PER KEY CLUSTERING FACTOR NUM ROWS LAST ANALYZED
CP_BAGS_N11 CP_BAGS 2 9,878 36,306 1 45 1,662,908 4,620,270 08/08/2007 -
Some queries on RAC database 11g
We have RAC oracle database 11g and we don't want to overburden the OLTP instance. So we thought of bringing the changed data from the OLTP instance to reporting instance via logical standby or streams and log the changes with the help of using total recall feature in the reporting instance.
Our idea is to retain the historical data using the total recall feature in reporting instance and bring the changed data from the OLTP instance to reporting instance via logical standby or streams
RAC database: OLTP instance ---> mine the changed data via logical standby or streams ---reporting instance (track all the changes made to a transaction using total recall feature in this instance)
My doubts are:-
1) Whether the total recall feature will work with work with logical standby database or streams?
2) How to transport the total recall feature enabled tables from one database to another. Whether the data pump will work with flashback enabled tables?
3) How to capture the changes from one instance to another with oracle streams. I could not find much documentation on how the streams work on RAC database. Any pointer /suggestion on this would be much appreciated.
Regards,
Richarduser12075620 wrote:
1) Easy backup and recovery for a specific instance in case of historical dataWhat data will that be? If this is a 3rd RAC instance, then it will not make backup easier as the data is in the database (on shared storage media) and that needs to be backed up - the database's data does not reside locally on the instance.
2) Point-in-time recovery is possibleAgain, I do not see how this is a specific advantage that now suddenly occurs with the introduction of a 3rd RAC instance.
3) If any other node fails, then it won’t affect this instance Correct - a 3rd instance increases the redundancy in the cluster. It also scales it and provides additional processing capacity. -
Facing error while performing hang analysis in RAC database.
Hi,
We have been performing hang analysis in one of our RAC databases. While doing this we faced the below error after executing the systemstate command.
SQL> oradebug -g all dump systemstate 266
Error 601 encountered by local DIAG [ospid=11984]
Error 601 encountered by remote DIAG [ospid=25384][instance=2]
Error 601 encountered by remote DIAG [ospid=688][instance=3]
Please help us to troubleshoot this and guide us on how to proceed.
Database version is as follows.
11.1.0.7
OS version is as follows,
$ uname -a
SunOS isdtarhp001 5.10 Generic_144488-06 sun4v sparc SUNW,T5240
$ isainfo -vk
64-bit sparcv9 kernel modulesHi..
Check the note # SAP Note 1121978
SAP Note 1121978 - Recommended settings to improve peformance risk analysis.
Check for the following...
CONFIGTOOL>SERVER>MANAGERS>THREADMANAGER
ChangeThreadCountStep =50
InitialThreadCount= 100
MaxThreadCount =200
MinThreadCount =50
Regards
Gangadhar -
Backup Exec 12.5 and Rac database
We always use rman to backup and restore our rac database without problems but now we would like to try with Backup Exec 12.5. Yesterday we installed the server for backup exec and the oracle agent for linux and by the way we did a full backup of our Rac database. The problems was when we tried to restore it. When we restore a single database it work but when we try with RAC it does not work.
Questions:
Is there a different agent for oracle Rac database or it is the same?
Are there aditional steps to configure the agent for Rac database?
I really appreciate your help.++We are using flash recovery area and all archive logs, flash back logs and backup sets go in there?The system administrator wants to back up the full directory of flash recovery area. Would that be enough?Is a backup of oracle home is needed?+
Normally there is no need to take oracle backup home , if yours FRA contain baskupset for database files (controlfile,db files),archivelogs ,flashback logs.You should also consider the pfile if you are not using spfile,spfile itself contain in RMAN backupsets.
Consider yours oracle binary backup (i.e cold backup) before any maintainance (patching activity).
Read http://oraware.blogspot.com/2008/07/fra-capacity-planning.html
Are there any backup settings required before backing up files while the database is on, like setting them in backup mode or etc?
yes for online database should be in archivelog mode,if you are using RMAN then there is no any setting required before backup , using RMAN you just have to connect with target database and start online backup using yours own backup script.
Any documentation discussing the backup steps, and what needs to be backed up will be appreciated
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup.htmlKhurram -
Refresh new created RAC databases with expdp dmp got SCN error
Hi, I did expdp full on a single instance database on AIX and scp to the new created LINUX RAC databases and ran a impdp full.
However I saw the following error:
Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
Cannot set an SCN larger than the current SCN. If a Streams Capture configuration was imported then the Apply that processes the captured messages needs to be dropped and recreated. See My Oracle Support article number 1380295.1.I checked support.oracle.com, that note is not existed.
Can anybody help me ? I would like to know if this is the error I can ignore.
Thanks in advance.What user was used to perform expdp and impdp ? Pl note that "/ as SYSDBA" should not be used. Pl see the first "Note" sections here
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#i1012781
http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_import.htm#i1012504
HTH
Srini -
Get the table's rowid of the session that is locking in RAC database
I am a developer and not a DBA and I need to find th correct query to find the exact rowid of the record locked on a table. This is for a RAC database and locked record can be from the web form in oracle application server. When I try to get the correct row id, I get the following error:
ORA-01410 - Invalid row id
For the criteria, the output is Dbms_Rowid.rowid_create(1, -1, 36, 7845, 0), why I get a -1 for the ROW_WAIT_OBJ#?
Additional Information: The lock type is DML and the lock mode is: Row Exclusive, the table is locked and the program is web oracle forms executiong.
I am executing the query in Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
How to accomplish gettting the correct rowid? Below is the selection criteria I have:
select vs.inst_id,
vs.audsid audsid,
locks.sid sid,
locks.type,
locks.id1 id1,
locks.id2 id2,
locks.lmode lmode,
locks.request request,
locks.ctime ctime,
locks.block block,
vs.serial# serial#,
vs.username oracle_user,
vs.osuser os_user,
vs.program program,
vs.module module,
vs.action action,
vs.process process,
decode(locks.lmode,
0, '0 None',
1, '1 NULL',
2, '2 Row Share',
3, '3 Row Exclusive',
4, '4 Share',
5, '5 Share Row Exclusive',
6, '6 Exclusive', '?') lock_mode_held,
decode(locks.request,
0, '0 None',
1, '1 NULL',
2, '2 Row Share',
3, '3 Row Exclusive',
4, '4 Share',
5, '5 Share Row Exclusive',
6, '6 Exclusive', '?') lock_mode_requested,
decode(locks.type,
'MR', 'Media Recovery',
'RT', 'Redo Thread',
'UN', 'User Name',
'TX', 'Transaction',
'TM', 'DML',
'UL', 'PL/SQL User Lock',
'DX', 'Distributed Xaction',
'CF', 'Control File',
'IS', 'Instance State',
'FS', 'File Set',
'IR', 'Instance Recovery',
'ST', 'Disk Space Transaction',
'TS', 'Temp Segment',
'IV', 'Library Cache Invalidation',
'LS', 'Log Start or Log Switch',
'RW', 'Row Wait',
'SQ', 'Sequence Number',
'TE', 'Extend Table',
'TT', 'Temp Table',
locks.type) lock_type,
vs.row_wait_obj# row_wait_obj#,
vs.row_wait_file# row_wait_file,
vs.row_wait_block# row_wait_block#,
vs.row_wait_row# row_wait_row#,
dbms_rowid.rowid_create ( 1, vs.ROW_WAIT_OBJ#, vs.ROW_WAIT_FILE#, vs.ROW_WAIT_BLOCK#, vs.ROW_WAIT_ROW# ) rowid_created,
objs.owner object_owner,
objs.object_name object_name,
objs.object_type object_type,
round( locks.ctime/60, 2 ) lock_time_in_minutes,
from gv$session vs,
gv$lock locks,
dba_objects objs,
dba_tables tbls
where locks.id1 = objs.object_id
and vs.sid = locks.sid
and objs.owner = tbls.owner
and objs.object_name = tbls.table_name
and objs.owner != 'SYS'
-- and locks.type in ('TM', 'TX')
order by lock_time_in_minutes;
Edited by: user3564713 on Jun 10, 2012 10:56 PMFirstly, read this thread
Identifying locked rows
And the last bit from Randolf
>
It is a common misconception that you can locate a locked row in Oracle via a query. The point is that the information that you're querying only gets populated in case of a blocking lock, and even then not in every case, since you might have blocking locks that do not refer to a particular row.
Oracle stores the lock information within the block, so if you identified in which block the row is located that you've attempted to lock, you could get detailed information about the row locks of that block by performing a block dump.
Other than that Oracle doesn't maintain this information anywhere else and it is only externalized for blocking situations - it is a matter of design that there is no central lock manager in Oracle that would inherently limit scalability, hence the downside of that approach is that there is no central information pool where you could obtain detailed information about row level locks.
>
However, if you see support note "Sample Code to Select from a Table EXCLUDING Locked Rows [ID 186531.1]"
You can take the same code from the script in that note to identify rowid of the locked rows. -
How to identify the physical IP address of AIX server on RAC Oracle 10g
Hi All,
Could you please help someone to identify the physical IP address of IBM AIX on RAC db. I have access to the database and I don't know whether the hostname mentioned in the tnsnames.ora file is virtual or physical ip adress . Is there any command to identify the physical IP address of AIX server. My objective is to gain acccess to those servers. I am a bit confused by looking at the virtual IP, private IP and Public IP addresses in the documentation and I am relatively new to this area. Also note that I am a junior developer who is trying to learn some new stuff.
Please throw some lights on this.I am assuming you have access to the servers indicated in the tnsnames.ora file. After logging into those servers, take a look at /etc/hosts files, which lists the IP addresses and its associated host names. See if that helps. Another option is if you don't have access to the servers, "nslookup <ip_address_from_tns.ora>" should list the server name associated with the given IP Address. If your SAs have followed the general naming conventions - you should see -vip at the end.
HTH
thanks
Chandra -
Running an external job at the specific node out of a 2 Node RAC database.
Hi. all.
I created a job , which runs an external script, by using dbms_scheduler.
Our database is 2 node RAC database(10.2.0.2.0).
The external script exists at a only one Node(Node 1).
select status,instance_id, additional_info
from dba_scheduler_job_run_details
where job_name='TEST_EXPORT_JOB'
shows that jobs which run on Node 2 failed.
Of course, the external script does not exist on Node 2.
I would like to force the job to ALWAYS run on Node 1.
How can I do that? Is there any ideas?
Locating the script on Node 2 is not the option.
Best and Regards.Hi,
In the upcoming 11g release there is an easy solution for this - a new attribute instance_id for a job.
For 10g there is a workaround. Basically you create a service with just the one instance you want the job to run on. Then create a job class pointing to that service. Finally have your job be in the job class you just created.
If you create a service and job class per instance you can get jobs to run under whichever instance you want.
Hope this helps,
Ravi. -
"The Network Adapter could not establish the connection" on RAC databases
I am posting what solved our situation here, in case it helps others:
We have RAC databases that use SCAN, but also use their Local_Listener ports (because we could not go completely to SCAN due to our applications).
For some reason, 11.1 Grid Control could see instances if we added them separately, but if we tried to connect to the database & view the performance, it would error out with "The Network Adapter could not establish the connection".
We had to fix it by manually setting the connect string in every instance and database in the OEM Setup to the non-SCAN VIP/Ports.
Hopefully this saves someone else hours & hours of troubleshooting. (I know, the day after Grid Control 12 comes out. SOOO helpful. :P )Aravind K R wrote:
java.sql.SQLException: The Network Adapter could not establish the connectionWhere is the Oracle error? I hate this - s/w like Java suppressing the underlying error codes and messages. Just how the hell can one diagnose an error when not knowing exactly what it is? There should be a TNS error code and message.
From the info you've given, one can only guess. And the following guess is as good as any. Load balancing is requested. Likely your RAC db services are registered on both static and virtual IPs - as the listeners are running listener 1521/tcp end points on both.
This means the client can get a redirect to connect to a specific listener on a specific IP - and this includes the static IPs. The listener usually passes hostnames (as that is what is configured). If the client cannot resolve that static hostname to an IP, it cannot correct.
So make sure that the client can resolve both virtual and static hostnames of the RAC - not just the virtual ones.
If you're client is Windows, update the c:\windows\system32\drivers\etc\hosts file - alternatively register the hostnames with the local DNS. -
2 RAC database in the same box
Hello,
I have a RAC env composed of 2 nodes. The database name is dbfunc1 and it is in 11gR2 version under Redhat Linux 5; this is a test env.
Now we need to create another RAC database in the same hosts with database name dbfunc2 with exactly the same structure, same parameters, etc... this RAC database will be used for the same product but for test level 1 purpose. I am thinking to create an XML template for the dbfunc1 using dbca and then create silently the database dbfunc2.
My question is: is it possible to use the already created and configured listener in the hosts or I must create a new listerenr listeneing on new ports to support the database dbfun2? Perhaps, both DB will use the SCAN listener ...
Thank you
DiegoDiego wrote:
Hello,
I have a RAC env composed of 2 nodes. The database name is dbfunc1 and it is in 11gR2 version under Redhat Linux 5; this is a test env.
Now we need to create another RAC database in the same hosts with database name dbfunc2 with exactly the same structure, same parameters, etc... this RAC database will be used for the same product but for test level 1 purpose. I am thinking to create an XML template for the dbfunc1 using dbca and then create silently the database dbfunc2.
My question is: is it possible to use the already created and configured listener in the hosts or I must create a new listerenr listeneing on new ports to support the database dbfun2? Perhaps, both DB will use the SCAN listener ...
Thank you
DiegoYou can have both configuration i.e. one local listener for host for both database or two seperate. But as a best pratice you can create seperate listener for new database just to have proper load balancing.
Its obvious that finally SCAN listenr will handover its connections to host listener, so if you have only one then there would be more connection (handle by local listener) as compared to past(when you had only 1 database),
Now you have 2 databases so connections would be more. -
How can i identify the environment name or database name in the PL/SQL code
Hi,
I am using UTL_FILE to genearate the files.,
My problem is, I have to design the common sql file , which can be executed in 2 diffrent environments ( Say QA & DEV ) , with no parameters. It has to identify the environment and based on the environment , it has to generate the concern files.,
The only change needs to be incorporated is , file names , which will change based on the environment.,
can nay one tell me , how can i identify the environment name or database name in the PL/SQL code ??
RajaIn this case, USEC_GI_DEV.NA.XXXNET.NET is a TNS alias. That alias exists only on the client machine. There is no way to access that information on the database server.
You would have to find something in the v$database or v$instance table that uniquely identifies the database (and you may need some help from the DBAs to do this because you need to ensure that the data element you choose is compatible with whatever refresh process(es) are used in your environment).
Now, if you are writing a stand-alone SQL*Plus script, SQL*Plus, as a client tool, does have access to the TNS alias in later versions. But that is a client-side determination, not a server-side determination.
Justin
Maybe you are looking for
-
I want to transfer pictures and music from my iphone 4S to a 5c. My pictures are not stored on icloud. Also, I would like to keep my apps and settings. Is all of this possible?
-
Displaying Employee Photo in smartform in SAP-HR
hi all, how can i display employee photo in smartform which is not uploaded in the sytem with tcode se78 but throgh diff tcode (OAAD) by HR functional. There are mainly two parts: 1. Procedure to retrieve that photo from the system
-
A bug auto-select mode + filtered by type layers
In addition to this: http://forums.adobe.com/message/4302940#4302940 When selecting multiple layers: 1. click > 2. "draw" a rectangle on the canvas to select desired layers > 3. release to submit selection The bug happens on step 2: the selection rec
-
ECC 6.0 Best Practices installation
Dear Experts, I have some questions to ask you regarding the project I am working on. Our team is involved in the implementation of an SAP ERP (ECC) solution for our customer. In order to speed up all the process the team has decided to use the SAP B
-
"Save project" stops at 94%
I'm creating a 15-minute 720p24 video, consisting of animations (1600x1200 raw footage, 12 fps) with green screen backgrounds. I've been happily working away for a week or so, but tonight after a fairly intensive session with key-framed 8-point garb