Oracle RAC Flashcards

rac master

1
Q

Can we manually force a particular scan ip (out of the three) to relocate on a particular host

A
srvctl relocate scan_LISTENER -i 1 -n node1
$ srvctl relocate scan -h
Usage: srvctl relocate scan -i  [-n ]
-i  Ordinal number of IP address
-n  SCAN VIP node name
-h Print usage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Does scan actually performs connection load balancing?

A

Yes, it does. The LREG process of each instance registers the database service with the local listener as well as all the SCAN listeners (typically they are specified by the parameter: REMOTE_LISTENER). When a connection request gets routed to a particular SCAN listener, then the SCAN listener does a quick calculation to find out the least loaded node, and once it gets that information, it sends the address of the local listener on that node back to the client to establish the connection. That is how load balancing is done by the SCAN listeners.
For clients connecting using SCAN, three IP addresses will be received by the client by resolving the SCAN name through DNS as discussed. The client will then go through the list it receives from the DNS and try connecting through one of the IPs received. If the client receives an error, it will try the other addresses before returning an error to the user or application. This is similar to how client connection failover works in previous releases when an address list is provided in the client connection string.
When a SCAN Listener receives a connection request, the SCAN Listener will check for the least loaded instance providing the requested service. It will then re-direct the connection request to the local listener on the node where the least loaded instance is running. Subsequently, the client will
be given the address of the local listener. The local listener will finally create the connection to the database instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is having odd number of Scan listener a recommended practice?

A

No, it’s not a recommended practice. The only thing Oracle recommends is that the SCAN resolves to three VIP addresses, to provide high availability and scalability . If the SCAN resolves to three addresses, then three SCAN VIPs and three SCAN listeners are created. Each SCAN listener depends on its corresponding SCAN VIP. The SCAN listeners cannot start until the SCAN VIP is available on a node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Difference between static and dynamic listener registration

A

1) the relevant one is that - if you want to remotely startup the database, you need to have a statically registered connect string, otherwise - since the database isn’t up - it wouldn’t be registered.
2) use dynamic registration for all application connects - all of them. Use static only if and when you need to remotely start the database over the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is cache fusion?

A

Oracle RAC Cache Fusion is simply where Oracle RAC transfers data blocks from the buffer cache of one instance to the buffer cache of another instance across the cluster interconnect. Transfers across this private network are in order of magnitude better than disk I/O activity and they help Oracle RAC performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the interconnect used for?

A

It is a private network which is used to ship data blocks from one instance to another for cache fusion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What methods are available to keep the time synchronized on all nodes in the cluster?

A

Either the Network Time Protocol(NTP) can be configured or in 11gr2, Cluster Time Synchronization Service (CTSS) c

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

ow do you find out what OCR backups are available?

A

The ocrconfig -showbackup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a VIP in RAC use for?

A

The VIP is an alternate Virtual IP address assigned to each node in a cluster. During a node failure the VIP of the failed node moves to the surviving node and relays to the application that the node has gone down. Without VIP, the application will wait for TCP timeout and then find out that the session is no longer live due to the failure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do we know which database instances are part of a RAC cluster

A

You can query the V$ACTIVE_INSTANCES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you backup ASM Metadata?

A

ou can use md_backup to restore the ASM diskgroup configuration in-case of ASM diskgroup storage loss.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What files can be stored in the ASM diskgroup?

A

n 11g the following files can be stored in ASM diskgroups.
Datafiles
Redo logfiles
Spfiles
In 12c the files below can also new be stored in the ASM Diskgroup
Password file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are some of the RAC specific parameters?

A
Some of the RAC parameters are:
CLUSTER_DATABASE
CLUSTER_DATABASE_INSTANCE
INSTANCE_TYPE (RDBMS or ASM)
ACTIVE_INSTANCE_COUNT
UNDO_MANAGEMENT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is oracle GNS -

A

GNS provides dynamic DHCP allocated addresses for the SCAN and nodes VIPs

delete and Add Node is simplified compared to using static addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

FLEX ASM

A

With Oracle Flex ASM, the clients can connect to remote ASM using network connection (ie ASM network ).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

how to get node info or scan listener

A

dcwipdbhcm012:+ASM2:oracle:$ srvctl config scan
SCAN name: wahcm14-cl.edc.nam.gm.com, Network: 1/148.93.0.0/255.255.248.0/lan5000
SCAN VIP name: scan1, IP: /wahcm14-cl.edc.nam.gm.com/148.93.5.84
SCAN VIP name: scan2, IP: /wahcm14-cl.edc.nam.gm.com/148.93.5.83
SCAN VIP name: scan3, IP: /wahcm14-cl.edc.nam.gm.com/148.93.5.85
dcwipdbhcm012:+ASM2:oracle:$
dcwipdbhcm012:+ASM2:oracle:$ nslookup wahcm14-cl.edc.nam.gm.com
Name Server: dcmipntddidr1.edc.nam.gm.com
Address: 164.56.5.103

Trying DNS
Name: wahcm14-cl.edc.nam.gm.com
Addresses: 148.93.5.84, 148.93.5.83, 148.93.5.85

dcwipdbhcm012: +ASM2:oracle:$ cat /etc/hosts| grep dcwipdbhcm012
148. 93.1.39 dcwipdbhcm012.edc.nam.gm.com dcwipdbhcm012
148. 93.5.80 dcwipdbhcm012-vip
29. 29.10.82 dcwipdbhcm012-priv

17
Q

what is SCAN

A

Single Client Access Name (SCAN) is a feature used in Oracle Real Application Clusters. environments that provides a single name for clients to access any Oracle Database running.