oracle cloud with 2 nodes processing
-
Upload
mahdi-ahmadi -
Category
Documents
-
view
52 -
download
1
Transcript of oracle cloud with 2 nodes processing
![Page 1: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/1.jpg)
به نام خدا
nodeبه همراه دو cloud oracleهدف :راه اندازی
به oracle 12cکه ببین وجود دارند یا خیر .البته میسنجیم container databaseرا در shared serverو dispatcherابتدا وضعیت -1
ایجاد میکند. dispatcherیک defaultصورت
SQL> select pname, addr,pid from v$process where pname like 'D0%' or pname like 'S0%’;
PNAME ADDR PID
----- ---------------- ----------
D000 00007FF99C6BF600 23
S000 00007FF99B5634D0 24
SQL> select name, status, accept, messages, breaks,owned from v$dispatcher;
NAME STATUS ACC MESSAGES BREAKS OWNED
---- ---------------- --- ---------- ---------- ----------
D000 WAIT YES 0 0 0
SQL> select name, paddr, status, messages from v$shared_server;
NAME PADDR STATUS MESSAGES
---- ---------------- ---------------- ----------
S000 00007FF99B5634D0 WAIT(COMMON) 0
قرار میگیرد. status=EXECالبته در صورت فعالیت سرور پارامتر
1-1-
Shared
server
Shared
server
dispatcher
Node 2
Node 1
client
![Page 2: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/2.jpg)
SQL> show parameter shared
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
hi_shared_memory_address integer 0
max_shared_servers integer
shared_memory_address integer 0
shared_pool_reserved_size big integer 23488102
shared_pool_size big integer 448M
shared_server_sessions integer
shared_servers integer 1
SQL> alter system set shared_servers=2;
System altered.
SQL> alter system set max_shared_servers=5;
System altered.
SQL> exit
.خارج میشویم exitدستور با databaseاز -2
ایجاد میکینیم.برای این کار مراحل زیر را انجام میدهیم: node 2با sshارتباط puttyبا استفاده از -3
3-1-
![Page 3: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/3.jpg)
![Page 4: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/4.jpg)
: node 1در -3-2
C:\Windows\system32>ping 192.168.56.101
Pinging 192.168.56.101 with 32 bytes of data:
Reply from 192.168.56.101: bytes=32 time<1ms TTL=64
Reply from 192.168.56.101: bytes=32 time<1ms TTL=64
Reply from 192.168.56.101: bytes=32 time<1ms TTL=64
Reply from 192.168.56.101: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.56.101:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
![Page 5: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/5.jpg)
![Page 6: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/6.jpg)
برقرار شده است. node 2با sshار تباط
![Page 7: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/7.jpg)
ذخیره کنیم. 1نود tnsnames.oraان در inet addrبه همراه را در 2نود instanceباید نام -4
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = orcl)((
5-
C:\Windows\system32>sqlplus
SQL*Plus: Release 12.1.0.2.0 Production on Tue Oct 11 15:21:47 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter user-name: sys as sysdba
Enter password:
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 2483027968 bytes
Fixed Size 3835112 bytes
Variable Size 1728056088 bytes
Database Buffers 738197504 bytes
Redo Buffers 12939264 bytes
Database mounted.
Database opened.
![Page 8: oracle cloud with 2 nodes processing](https://reader031.fdocuments.in/reader031/viewer/2022020301/58ec8dc31a28ab25768b46a3/html5/thumbnails/8.jpg)
SQL> select pname, addr,pid from v$process where pname like 'D0%' or pname like 'S0%';
PNAME ADDR PID
----- ---------------- ----------
D000 00007FF99B562980 22
S000 00007FF99C6BF600 23
S001 00007FF99B5634D0 24
SQL> select name, paddr, status, messages from v$shared_server;
NAME PADDR STATUS MESSAGES
---- ---------------- ---------------- ----------
S000 00007FF99C6BF600 WAIT(COMMON) 0
S001 00007FF99B5634D0 WAIT(COMMON) 0
SQL> select name, status, accept, messages, breaks,owned from v$dispatcher;
NAME STATUS ACC MESSAGES BREAKS OWNED
---- ---------------- --- ---------- ---------- ----------
D000 WAIT YES 0 0 0
تهیه کننده :مهدی احمدی