473,569 Members | 2,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grant Problem?

I created a package using pl/sql.
In this package i have a dblink to another Database, call it DB2.
Meanwhile, Server2 has a DBlink to another Database, call it DB3.

Within my package, i have a sql that link to these DB2's view.
In the View of this DB2, it call a function from DB3 and take the data
from the DB3.

I run this package in few locations.
This package run fine except for one location.
so, i'm confident with my coding.

For this location,
When i declared the function that call the sql in public, it runs!!!
But when i declared it within the body, it DOESN"T run!!
(Ofcause, i want to declare it within the body and not public.)

May i know what caused this to be happenned?
Is it the grant problem?
(i don't have the priviledge to view the grant for each side.)

The error are as below when it connect from the DB2 to DB3:

5:26:08 PM Error: ORA-04052: error occurred when looking up remote
object ZE************* ****@DBUXP4.RBG .INFINEON.COM
5:26:08 PM ORA-00604: error occurred at recursive SQL level 1
5:26:08 PM ORA-02019: connection description for remote database not
found
please help

regards,
felicia
Jul 19 '05 #1
1 6504
ko********@yaho o.com (kong) wrote in message news:<cc******* *************** ****@posting.go ogle.com>...
I created a package using pl/sql.
In this package i have a dblink to another Database, call it DB2.
Meanwhile, Server2 has a DBlink to another Database, call it DB3.

Within my package, i have a sql that link to these DB2's view.
In the View of this DB2, it call a function from DB3 and take the data
from the DB3.

I run this package in few locations.
This package run fine except for one location.
so, i'm confident with my coding.

For this location,
When i declared the function that call the sql in public, it runs!!!
But when i declared it within the body, it DOESN"T run!!
(Ofcause, i want to declare it within the body and not public.)

May i know what caused this to be happenned?
Is it the grant problem?
(i don't have the priviledge to view the grant for each side.)

The error are as below when it connect from the DB2 to DB3:

5:26:08 PM Error: ORA-04052: error occurred when looking up remote
object ZE************* ****@DBUXP4.RBG .INFINEON.COM
5:26:08 PM ORA-00604: error occurred at recursive SQL level 1
5:26:08 PM ORA-02019: connection description for remote database not
found
please help

regards,
felicia


Felicia, the ORA-02019 would seem to indicate that on one of your
instances the package owner does not have access the referenced db.
The link might be defined with an invalid TNS Service name or the
service name might be missing from the tnsnames.ora. Also the problem
could be because of public vs private db link definitions or public vs
private object synonym definitions one of which is either wrong or
interfering with finding the right object at the right database.

HTH -- Mark D Powell --
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3830
by: Bruce A. Julseth | last post by:
I am doing something wrong or have something set up wrong. When I issue mysql> grant all on * to mike identified by 'joented' with grant option; Query OK, 0 rows affected (0.69 sec) It looks like the grant worked. Here is what the mysql.user table looks like.
14
1981
by: Martin v. Löwis | last post by:
The Python Software Foundation is seeking grant proposals for projects related to the further development of Python, Python-related technology, and educational resources. The PSF plans to issue calls for proposals regularly. Proposals should be for specific projects with a clear objective, rather than support for ongoing activities....
4
98969
by: Amardeep Verma | last post by:
Hi, I have a quick question. Which role/privileges are required before a user can give the statement "GRANT ALL PRIVILEGES"? Thanking you in Advance Have a nice day
0
10574
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I could tell, with no warnings or error messages. In nearly all respects, the database appears to be running as expected. I have the book "PHP and...
0
2016
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I could tell, with no warnings or error messages. In nearly all respects, the database appears to be running as expected. I have the book "PHP and...
0
1913
by: Xerxes | last post by:
I am having a problem with accessing MySQL database from my PHP code. I tested accessing MySQL db locally and once things worked I created the same DB on my web hosting's server. No problem creating database and tables and populating it. My database is called "sassisc". However, my code dies when it tries to connect to DB: $result =...
6
6848
by: Xerxes | last post by:
When I use the following GRANT statement GRANT SELECT , INSERT , UPDATE , DELETE ON sassisc.* TO sassisc@localhost IDENTIFIED BY 'dodge3' it came back with an error message: SQL-query : GRANT SELECT , INSERT , UPDATE , DELETE ON sassisc. * TO
1
1578
by: Shashidarcs | last post by:
Hi All, I have a problem here.. Say i have a stored procedure in the new query sheet and i would like to add grant permissions in textual content just below the procedure.. I jus want to automate the addition of these grant permissions for this procedure.. An example of the same is given below: ***** Creating Stored Procedure...
7
3168
by: MNNovice | last post by:
Please forgive me for this is a long request. I am designing a DB to capture expenses related to Federal Grants and to generate appropriate reports. Each grant starts with a Notice of Grant Award (NOGA) which has 7 parts. Grant Number Grant Title Amendment Number Revision Number Fund Information Apportion Year (AY), could be a single...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.