الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

شباب برجاء المساعدة في حل هالواجب تكفوووووووووووووون

Featured Replies

بتاريخ:

Learning Objectives
 To work with multiple listeners.
Lab Work Summary
 Create a lab report and test multiple listeners
Lab Work
1. Create a lab report and test multiple listeners
 Use Lab Question (page 233) as reference.
 Create three listeners (not two as is in the lab) on different IP addresses and different port numbers.
 I wasn’t previously aware of this, but it appears that any packet sent to an address in the 127.0.0.0/8 net block (not just 127.0.0.1), will be caught by the loopback adapter.
 Test your connection by shutting down one, two, or all three listeners.
 At the end of the homework make sure you DELETE the TNS_ADMIN key from the registry. Your Oracle net configuration should be moved again to the default location.
 Unset the TNS_ADMIN variable. The Oracle Net configuration directory should be back to: %ORACLE_HOME%\network\admin
Deliverables
(1) Create a lab report in which you describe in detail all steps done during this assignment. Make sure you include all executed SQL commands in each step. Your lab report should be similar with how the book exercises are described. (See exercise 6‐1 as an example). You should include figures in your report (when using GUI tools). (60 points)
(2) Include the content of the listener.ora and tnsnames.ora files. (40 points)

بتاريخ:

علي الاقل يجب الا ينقل السؤال كما هو


يمكنك تهذيب السؤال بمعني فهمه وترجمته ومحاوله البحث لا ان يكتب كما هو لنجيب عليه كما هو ويظل عقل السائل كما هو بلا تطور


اعلم كيف سيكون الرد الساخط لكن لكي نساعدك لا بد ان تساعد نفسك اولا

بتاريخ:

امل من الله لي ولك التوفيق
هل ستجيب عن بعض الاسئلة التي ستسأل بها عند تقديم الواجب محلول ( جاهز ! بدون تعب ) اخي الكريم تابع لتعرف ما ستسئل عنه وافهمه ساحاول ان اقدم لك شرح لا يتعدى خبرتي البسيطة
1. ما هوا سبب عمل اكثر من listeners : -
هي اسباب ادارية Data Base Management لو افترضنا اننا نعمل على سيرفر يتصل به االعديد من الخوادم تحتاج بعض الاحيان الى فصل Connection عن الــ Server لبعض المستخدمين فقط ,
وابقاء الاخرين فعالين او متصلين لمتابعة عملهم , يكون الـ Listener محدد على Port معين لاتصال الاجهزة بقاعدة البيانات التي يكون معرف عليها هذا الـ Listener . ويمكن فصل Listener واحد
وتشغيل الاخرين او العكس او كلهم سوية وهي ما يختص بــ العمليات الادارية .

انظر طريقة تعريف Listener اتبع الخطوات التالية ................
1. اعمل اضافة NIC and cable يمكن ان تكون منفصلة عن Sub network او نفسها تاكد من ان الروتر Static اذا حتاج الامر
2. نفترض اننا سنقوم بعمل Listener and Listener2
مثال على Listener.ora

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.3)(PORT = 1521))

)

)



LISTENER2 =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.2)(PORT = 1525))

)

)



SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = /u01/my10g/orcl)

(PROGRAM = extproc)

)

)

وهنا مثال على tnsnames.ora

LISTENER =


(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.3)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = ORCL)

)

)



LISTENER2 =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.2)(PORT = 1525))

)

(CONNECT_DATA =

(SERVICE_NAME = ORCL)

)

)



EXTPROC_CONNECTION_DATA =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))

)

(CONNECT_DATA =

(SID = PLSExtProc)

(PRESENTATION = RO)

)

)

To change database registry

Without changing the registration, when starting the Oracle 10g database would cause the database to register itself with the listener running on port 1521 (the default listener). This is not what I wanted. It should register itself to two listeners, LISTENER & LISTENER2, defined on port 1521 & 1525. For this to happen we have to add an extra line in the database parameter file init{$SID}.ora. The parameter used by oracle is LOCAL_LISTENER. The reference for this parameter in the Oracle's Database Reference Guide says: LOCAL_LISTENER specifies a network name that resolves to an address or address list of Oracle Net local listeners (that is, listeners that are running on the same machine as this instance).

The address or address list is specified in the TNSNAMES.ORA file or other address repository as configured for your system. With default value: (ADDRESS=(PROTOCOL=TCP)(HOST=hostname)(PORT=1521)) where hostname is the network name of the local host.

See sample below:

LOCAL_LISTENER=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.2)(PORT=1525))

If you don't use a database parameter file (or the above overwrite the previous definiation on 10.6.142.145), but use the spfile construction, then you can alter/set this setting via a SQL statement in eg. SQL\*Plus and an account with the correct privileges:

Before change:


SQL> show parameter LISTENER
NAME TYPE VALUE
----------------------------------- --------- -----------------------------
local_listener string
remote_listener string
SQL>

To change: (Do not put it in a single line which is "TOO LONG").


SQL> alter system set LOCAL_LISTENER="(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.6.142.145)(PORT=1521))
2 (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.2)(PORT=1525)))" scope=BOTH;
System altered.
SQL>

After change


SQL> show parameter LISTENER
NAME TYPE VALUE
---------------------- -------- -----------------------------
local_listener string (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.6.142.145)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.2)(PORT=1525))) log_archive_local_first boolean TRUE
SQL>

After change



SQL> show parameter LISTENER
NAME TYPE VALUE
---------------------- -------- -----------------------------
local_listener string (ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.6.142.145)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.100.2)(PORT=1525)))
log_archive_local_first boolean TRUE

SQL>


SQL>
SQL> show parameter DISPATCHERS
NAME TYPE VALUE
----------------------- ------- ----------------------------
dispatchers string (PROTOCOL=TCP) (SERVICE=orclXDB)
max_dispatchers integer
SQL>
4) Restart the listeners:
lsnrctl stop
lsnrctl start LISTENER
lsnrctl start LISTENER2
5) Check both listeners status and should report the same thing except on different IP:
lsnrctl stat
lsnrctl stat LISTENER1
lsnrctl stat LISTENER2
ps -ef |grep -i tns <=== should see two listeners running
6) Should spread out your connections among different listeners and here are some samples of how to connect to a particular listener. i.e

sqlplus system/oracle@//192.168.100.3:1521/orcl
sqlplus system/oracle@//192.168.100.2:1522/orcl

اخي الكريم تابع االاخطاء وتعلم على عمل ذلك لتستفيد اشكرك لانني استفدت معك لمثل هذا الشيئ

لان خبرتي قليلة وشكرا لك على العموم لا تقم بنقل ذلك بل افعله بنفسك وتعلم لتعلم فذلك ستستفيد منه

بنفسك ولنفسك

مع تمنياتي لك بـــ توفيق

شكرا واتمنى بان اكون قدمت الفائدة والله ولي التوفيق

بتاريخ:
  • كاتب الموضوع

اولا شكرا لتجاوبكم
ثانيا انا لك يكن لدي الوقت لتهذيب او البقاء في المنتدى حتى انتظر ردودكم واجيب عليها
لان لدي الكثير من الهووم ورك والاسايمنت في مواد اخرى فاحببت ان اختصر وقتي في حل هالسؤال واعتذر عن عدم توضيحي للطلب لانني احسست انكم سوف تقومون بالاجابة دون الرد القاسي الذي رميتموني به
والذي جعلني اندم اشد الندم على كتابة السؤال في هذا المنتدى
المطلوب كان فقط بعض الكومينت التي لم ادرسها حتى الان

عموما هذه المشاركة الرابعه لي في هذا المنتدى والاخيرة
النظرة المتعالية ليست شئياًجميلاُ
تحياتي

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.