You are on page 1of 42

LANDesk® Management Suite 8.

7
Creating Database Links for Rolling Oracle* Databases
to Oracle Databases

Revision 1.0

Roy Meyer
Mar. 7, 2007
The Information in this document is provided in connection with LANDesk Software products. No license, express or implied,
by estoppel or otherwise, to any intellectual property rights is granted by this document. Except as provided in LANDesk’s
terms and conditions for the license of such products, LANDesk Software, Inc. and its affiliates (“LANDesk Software”)
assume no liability whatsoever, and LANDesk Software disclaims any express or implied warranty, relating to sale and/or use
of LANDesk Software products including liability or warranties relating to fitness for a particular purpose, merchantability,
or infringement of any patent, copyright or other intellectual property right. LANDesk Software products are not intended
for use in medical, life saving, or life sustaining applications.

Information regarding third-party products is provided solely for educational purposes. LANDesk Software is not responsible
for the performance or support of third-party products and does not make any representations or warranties whatsoever
regarding the quality, reliability, functionality or compatibility of these products. The reader is advised that third parties
can have intellectual property rights that can be relevant to this document and the technologies discussed herein, and is
advised to seek the advice of competent legal counsel, without obligation of LANDesk Software.
LANDesk Software retains the right to make changes to this document or related product specifications and descriptions, at
any time, without notice. LANDesk Software makes no warranty for the use of this document and assumes no responsibility
for any errors that can appear in the document nor does it make a commitment to update the information contained
herein.

Copyright © 2007, LANDesk Software, Ltd. All rights reserved.

LANDesk, Peer Download, Targeted Multicast, and Trusted Access are registered trademarks or trademarks of LANDesk
Software, Ltd. or its controlled subsidiaries in the United States and/or other countries.

Avocent is a registered trademark of Avocent Corporation.

Screenshots Copyright © 1996, 2005, Oracle.  Neither this document nor any information contained in this document are
sponsored, endorsed by, or affiliated with Oracle.

*Other brands and names may be claimed as the property of others.

2
Table of ContentsIntroduction ..................................................................................................................4
Scope ........................................................................................................................................................... 4
Assumptions................................................................................................................................................4
Oracle Databases rolling to Oracle Databases........................................................................................ 4
Creating Database Links in Oracle 10GR2 ............................................................................................5
Creating Database Links in Oracle 9i (9.2.0.7)....................................................................................21
Conclusion ................................................................................................................................................ 42

3
Introduction
This document is intended to assist LANDesk® Management Suite 8.7 (Management Suite)
customers with the creation of database links in Oracle 10GR2 and Oracle 9i (9.2.0.7) for use
with a LANDesk Management Suite 8.7 Rollup Core to rollup an Oracle database. Once the
links have been created, refer to the product documentation in the Docs folder on the
LANDesk Management Suite 8.7 CD or in the location the files were extracted from the Web
download.

Scope
This document covers the steps necessary to create a database link in Oracle 10GR2 or
Oracle 9i (9.2.0.7) for use with the Rollup Core to rollup an Oracle database. This document
only covers the information necessary to create the database links in preparation for
installing the Management Suite Rollup Core Server.

Assumptions
The reader should be familiar with Oracle 10GR2 or Oracle 9i (9.2.0.7). The Management
Suite Core should already be installed and operational using an Oracle database. The Oracle
database for the Rollup Core should already be setup.

Oracle Databases rolling to Oracle Databases


The following section describes the procedure for creating database links in Oracle 10GR2 or
Oracle 9i (9.2.0.7) for rolling up an Oracle 10GR2 or Oracle 9i (9.2.0.7) database.

4
Creating Database Links in Oracle 10GR2
How to create database links in Oracle 10GR2:
1. Add an entry in the TNSNAMES.ORA file on the Rollup Core’s Oracle server that points to
the Core Servers database.
This can be accomplished by running Oracle Net Configuration Assistant on the Oracle
server where the Rollup database is located.

5
2. Click the Local Net Service Name configuration radio button.
3. Click Next.

4. Click the Add radio button.


5. Click Next.

6
6. Type the name of the Core Server’s database in the Service Name field.
7. Click Next.

8 Click to highlight TCP.


9. Click Next.

7
10. Type the name of the Oracle server that contains the Core Server’s database in the
Host name field.
11. Click the appropriate radio button to specify the port number used by the Core Servers
Oracle database server.
12. Click Next.

13. Click the Yes, perform a test radio button.


14. Click Next.

8
15. Click the Change Login button.

16. Type the Oracle Username and Password for the Core Server’s database.
17. Click OK.

9
18. Click Next.

19. Type any name in the Net Service Name field.


20. Click Next.

10
21. Click the No radio button.
22. Click Next.

25. Click Next.

11
26. Click Finish.

27. Start Oracle’s Enterprise Manager Web Console for the Rollup database.

12
28. Enter the Username and Password for an Oracle user that has sufficient rights to create
public database links.
The SYSTEM or SYS user should work.
29. Click Login.

13
30. Click the Administration link.

14
31. Under Schema | Database Objects, click Database Links.

15
32. Click Create.

16
33. Type a unique name for this database link (for example, LINK_SERVER1) in the Name
field.
34. Type the TNS name used in step 19 in the Net Service Name field.
35. Click to place a checkmark in the Public checkbox.
36. Click the Fixed User radio button.
37. Type the Oracle username for the Core Server’s database in the Username field.
38. Type the password for the Core Server’s database in the Password and Confirm
Password fields.
39. Click OK.

17
40. The Update Message should read:
Database Link PUBLIC.<LinkName> has been created successfully
41. Click the link for the newly created database link. For the purposes of this document it is
LINK_SERVER1.REGRESS.RDBMS.DEV.US.COM.

18
42. Click the Test button.

19
43. If the link is functioning properly, it will return the “The Database Link is active.”
message.
44. Click Logout.

20
Creating Database Links in Oracle 9i (9.2.0.7)
How to create database links in Oracle 9i (9.2.0.7):
1. Add an entry in the TNSNAMES.ORA file on the Rollup Core’s Oracle server that points to
the Core Servers database.
This can be accomplished by running Oracle Net Configuration Assistant on the Oracle
server where the Rollup database is located.

21
2. Click the Local Net Service Name configuration radio button.
3. Click Next.

22
4. Click the Add radio button.
5. Click Next.

23
6. Click the Oracle8i or later database or service radio button.
7. Click Next.

24
8. Type the name of the Core Servers database in the Service Name field.
9. Click Next.

25
10. Click to highlight TCP.
11. Click Next.

26
12. Type the name of the Oracle server that contains the Core Server’s database in the
Host name field.
13. Click the appropriate radio button to specify the port number used by the Core Servers
Oracle database server.
14. Click Next.

27
15. Click the Yes, perform a test radio button.
16. Click Next.

28
17. Click the Change Login button.

29
18. Type the Oracle Username and Password for the Core Servers database.
19. Click OK.

20. Click Next.

30
21. Type a name in the Net Service Name field.
22. Click Next.

31
23. Click the No radio button.
24. Click Next.

25. Click Next.

32
26. Click Finish.

33
27. Start Oracle’s Enterprise Manager Console.

28. Click the Launch standalone radio button.


29. Click OK.

34
30. Click to expand Network | Databases.
31. Click to expand the Rollup Core’s database.

35
32. Enter the Username and Password for an Oracle user that has sufficient rights to create
public database links.
The SYSTEM or SYS user should work.
33. Click OK.

36
34. Click to expand Distributed.

37
35. Right-click Database Links and click Create.

38
36. Type a unique name for this database link (for example, LINK_SERVER1) in the Name
field.
37. Click to place a checkmark in the Public checkbox.
38. Click the Fixed User radio button.
39. Type the Oracle username for the Core Server’s database in the Username field.
40. Type the password for the Core Server’s database in the Password field.
41. Type the TNS name used in step 21 in the Service Name field.
42. Click Create.

43. Click OK.

39
44. Double-click the newly created link in the right pane.

40
45. Click the Test button.

41
46. Click OK.

Conclusion
The steps outlined in this document provide the customer with the basic information
required to create database links in Oracle 10GR2 or Oracle 9i (9.2.0.7) to rollup an Oracle
database within a LANDesk Management Suite 8.7 environment.

42

You might also like