Is Identifier required for Private database link
Hi All,
A public database link is created between two databases: db1 and db2.
x.world is the name of the link.
when we access the data as
select * from tab@x i am getting the data.
But if the database link is private
can we access the data using the same query or .world is required.
Reg
Ravi
Hi,
You must understand first what type of database link you are creating. If you are working Anonymous database link then make sure that user account persists on destination database.
Other wise you might end up with Insufficient Privileges.
Refer to : http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/ds_concepts002.htm
- Pavan Kumar N
Similar Messages
-
Hi,
I am currently working on a 92080 database on HPUX RISC platform.
I have a question regarding DB link.
There is already a public database link. I want to make it private since our organaization doesnt allow public database link.
OWNER DB_LINK USERNAME HOST CREATED
PUBLIC DW.EADV.NA.JNJ.COM GTWYCOMMAPP HCSOP17.HCSPROD2.RAR.NCSUS.JNJ 05-APR-06
.COM
PUBLIC EDIDB.EADV.NA.JNJ.COM USER4DBLNK HCSOP12 12-APR-06
PUBLIC RAM_MART.EADV.NA.JNJ.COM GTWYCOMMAPP HCSOP30.hcsprod2.rar.ncsus.jnj 04-NOV-05
.comMy question is -> If I want to create a private database link, should we login to each application schema and create the same?
Or can we create a private database link logging in as SYS/SYSTEM. Please let me know
Thanks!You can create database link in one schema and after that you can create public synonym ,therefore all users can use this db link.
CREATE DATABASE LINK DBN
CONNECT TO SMART IDENTIFIED BY sm
USING 'SB222'
/You can create objects like view according this dblink and create publik synonym for this
Edited by: Chinar on Dec 3, 2010 8:39 AM -
Remote procedures created on Private Database Links
How to grant access to role on the private synonym created in a schema for the remote procedure with private Database links.
We have converted the public database links to private. Plz suggest me how to access the remote procedures and
grant access to role.
Thanks a Lot in advance.
Its UrgentI asked in general since my task was stopped because of this.
Secondly i have asked the users not specifically you. If you dont want to answer just dont answer.
Coming to the problem, There was no problem when the public database links were used. The public synonyms were created and we were able to grant access with the role.
But why not with private dblinks. -
ORA-04054 : using variable substitution for the database link name
Hi,
I need to use variable substitution for the database link name.
Here is my command :
declare
GET VARCHAR2(50);
begin
select OIA_GET_DESIGNATION into GET from INFODRI.OMA_IN_ARTICLES;
for rec in (select * from [email protected]_GET_DESIGNATION)
LOOP
dbms_output.put_line('TEN_CODE vaut : '||rec.ten_code);
END LOOP;
exception
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('ERREUR ORACLE DETECTEE : '||rec.OIR_CUR);
DBMS_OUTPUT.PUT_LINE('Message Erreur : '||SUBSTR(SQLERRM,1,245));
:crd := -1;
end;
When I run this programm, I receive the error :
ORA-04054: database link REC.OIA_GET_DESIGNATION does not exist
When I replace :
for rec in (select * from [email protected]_GET_DESIGNATION)
by :
for rec in (execute immediate 'select * from tensions@'||rec.OIA_GET_DESIGNATION)
I receive the error :
PLS-00103 : Encountered the symbol "IMMEDIATE" while parsing.
What can I do to resolv my problem ?
Regards,
RachelWhat is the name of the DB Link and the name of the object you are selecting
from?
I find it easier to create a view on the remote object then use that in selects.
e.g,
Link Name = MyLink
Object_name = Addr_Loc
create or replace VIEW Rem_Addr_Loc AS
select * from addr_loc@mylink;
In the code I then use the view
begin
for C_Rec in (select * from Rem_Addr_loc)
loop
dbms_output.put_line('Rec: '|| C_Rec.Col1);
end loop;
end; -
What the Enviroment required for java databases programs?
Hi guys
What the enviroment required for java databases programs?
If I have oracle of version 9i and java 1.4.1 platform
do I need Jdeveloper platform ?What the enviroment required for java databases programs?What do you mean by "environment"?
f I have oracle of version 9i and java 1.4.1 platformYou just need to download Oracle's 9i JDBC driver (ojdbc14.jar) and put that in your CLASSPATH. Then write JDBC code to connect to Oracle and issue SQL commands.
do I need Jdeveloper platform ?No, JDeveloper is an IDE. Not required.
Why Java 1.4.1? We're up to Java 6 now. You're two major versions of the JDK behind.
% -
3.2 to 4.1 Upgrade - Error Handling for Unavailable Database Links
Hi,
I'm having a 3.2 -> 4.1 upgrade issue related to error handling for failed database links.
I have a conditional Exists button on a page that has a SQL query to linked tables. However, for the 10 minutes every day where the target of the database link is getting a cold backup, the query fails. In the old 3.2 apex I simply got an error inside the region where the button is located but otherwise the page was still visible:
"Invalid exists/not exists condition: ORA-02068: following severe error from MYDBLINK ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist"
However, in apex 4.1.0.00.32 I get the following unhandled error, and clicking "OK" takes me to the edit page when logged in as developer.
i.e., the page can't be run at all while the database links are failing in this one region.
Error Error processing condition.
ORA-12518: TNS:listener could not hand off client connection
Technical Info (only visible for developers):
is_internal_error: true
apex_error_code: APEX.CONDITION.UNHANDLED_ERROR
ora_sqlcode: -12518
ora_sqlerrm: ORA-12518: TNS:listener could not hand off client connection
component.type: APEX_APPLICATION_PAGE_REGIONS
component.id: 4
component.name: Current Alerts
error_backtrace:
ORA-06512: at "SYS.WWV_DBMS_SQL", line 1041
ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 687
ORA-06512: at "APEX_040100.WWV_FLOW_CONDITIONS", line 272
General users see this:
Error Error processing condition.
ORA-01034: ORACLE not available ORA-02063: preceding line from MYDBLINK
clicking "OK" takes user to another page, not sure how apex decides which, but not a concern at the moment.
I've done a search and read the page http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/ but the new apex error handling isn't clear to me, and I don't know if the apex_error_handling_example provided on that page would be applicable to this situation.Thanks Patrick.
The PL/SQL Function Body returning boolean condition with:
begin
for l_check in (
SELECT 1
FROM myview@MYDBLINK
WHERE ... ) loop
return true;
end loop;
return false;
exception when others then
sys.htp.p('Invalid exists/not exists condition: ' || sys.htf.escape_sc(sqlerrm));
return false;
end; Resulted in a similar issue:
Error Error processing condition.
ORA-04052: error occurred when looking up remote object MYLINKUSER.myview@MYDBLINK
ORA-00604: error occurred at recursive SQL level 3
ORA-01033: ORACLE initialization or shutdown in progress
ORA-02063: preceding line from MYDBLINK
Technical Info (only visible for developers)
is_internal_error: true
apex_error_code: APEX.CONDITION.UNHANDLED_ERROR
ora_sqlcode: -4052
ora_sqlerrm: ORA-04052: error occurred when looking up remote object MYLINKUSER.myview@MYDBLINK
ORA-00604: error occurred at recursive SQL level 3
ORA-01033: ORACLE initialization or shutdown in progress
ORA-02063: preceding line from MYDBLINK
component.type: APEX_APPLICATION_PAGE_REGIONS
component.id: 4
component.name: Current Alerts
error_backtrace:
ORA-06512: at "SYS.WWV_DBMS_SQL", line 904
ORA-06512: at "APEX_040100.WWV_FLOW_DYNAMIC_EXEC", line 588
ORA-06512: at "APEX_040100.WWV_FLOW_CONDITIONS", line 148However, I created a view with the same query:
CREATE OR REPLACE VIEW v_localview (ALERT_1)
AS
SELECT 1
FROM myview@MYDBLINK ...then change the condition to look at the local view:
begin
for l_check in (
select alert_1 from v_localview ) loop
return true;
end loop;
return false;
exception when others then
sys.htp.p('Invalid exists/not exists condition: ' || sys.htf.escape_sc(sqlerrm));
return false;
end;As a view is simply a query I'm surprised this should make any difference but it now looks similar to the 3.2 error, inside the region, when the linked database gets its morning cold backup, and this is fine:
Invalid exists/not exists condition: ORA-12518: TNS:listener could not hand off client connection -
Minimum parameters and values required for 11g database
Hi
Can anyone please provide me with the list of parameters and the minimum value required for these parameters in 11g database (11.1.0.6.0).
Thanksuser8940828 wrote:
Thanks for your help
But this basic parameters did not mention the following parmeters . What can be the mimimum value that can be assigned to these parameters.
dml_locks
log_checkpoint_interval
log_checkpoint_timeout
open_cursors
open_links
parallel_max_servers
processes
session_cached_cursors
session_max_open_files
job_queue_processes
log_buffer
shared_pool_size
sort_area_retained_size
sort_area_size
db_cache_size
pga_aggregate_target
ThanksI suggest you to start letting the default parameters and then tune them step-by-step.
Eg:
- open_links => If you dont have database links you can avoid to set it.
- processes: number of backgroud processes + expected session/users for your application. if you have 1000 users connecting at the same time you would set a value higher than 1000.
- shared_pool_size, db_cache_size, sort_area_size, pga_aggregate_target are not mandatory if you use automatic memory management by Oracle.
- etc. -
Special characters in password for "create database link"
It seems that one cannot create a DB link if the password has a special character in it (like '!')?
create database link MYLINK connect to SOURCE identified by mypwd! using 'MYDB'
- returns "ORA-00933: Command not properly ended"
create database link MYLINK connect to SOURCE identified by values 'mypwd!' using 'MYDB'
- returns "ORA-00988: missing or invalid password(s). This is the syntax that works in "create user".
Nikolai1* create database link MYLINK connect to SOURCE identified by "mypwd!" using 'MYDB'
SQL> /
Database link created.
SQL>
Joel Pérez -
NLS settings for a database link between DBs with different character sets
I am using a database link to move data from one database to another and I am seeing some strange data problems. The databases have different character sets and different NLS settings. I wonder if this could be causing my problem.
Here are the NLS parameters for the database where the database link exists. (the SOURCE database)
1 NLS_CALENDAR GREGORIAN
2 NLS_CHARACTERSET WE8MSWIN1252
3 NLS_COMP BINARY
4 NLS_CURRENCY $
5 NLS_DATE_FORMAT DD-MON-RR
6 NLS_DATE_LANGUAGE AMERICAN
7 NLS_DUAL_CURRENCY $
8 NLS_ISO_CURRENCY AMERICA
9 NLS_LANGUAGE AMERICAN
10 NLS_LENGTH_SEMANTICS BYTE
11 NLS_NCHAR_CHARACTERSET AL16UTF16
12 NLS_NCHAR_CONV_EXCP FALSE
13 NLS_NUMERIC_CHARACTERS .,
14 NLS_SORT BINARY
15 NLS_TERRITORY AMERICA
16 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
17 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
18 NLS_TIME_FORMAT HH.MI.SSXFF AM
19 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
Here are the NLS parameters for the database that the database link connects to. (the TARGET database)
1 NLS_CALENDAR GREGORIAN
2 NLS_CHARACTERSET AL32UTF8
3 NLS_COMP BINARY
4 NLS_CURRENCY $
5 NLS_DATE_FORMAT DD-MON-RR
6 NLS_DATE_LANGUAGE AMERICAN
7 NLS_DUAL_CURRENCY $
8 NLS_ISO_CURRENCY AMERICA
9 NLS_LANGUAGE AMERICAN
10 NLS_LENGTH_SEMANTICS BYTE
11 NLS_NCHAR_CHARACTERSET AL16UTF16
12 NLS_NCHAR_CONV_EXCP FALSE
13 NLS_NUMERIC_CHARACTERS .,
14 NLS_SORT BINARY
15 NLS_TERRITORY AMERICA
16 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
17 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
18 NLS_TIME_FORMAT HH.MI.SSXFF AM
19 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
The SOURCE database version is 10g Release 10.2.0.3.0 - Production
The TARGET database version is 11g Release 11.1.0.6.0 - 64bit Production
Do I need to modify the NLS settings in the SOURCE database before executing a script to insert data into the TARGET database?
Thanks, JackThe difference in settings is not a problem by itself, especially that only the NLS_CHARACTERSET matters. Of course, this difference may lead to certain issues if not taken into consideration.
Please, describe symptoms of your problems.
-- Sergiusz -
Hardware requirements for SQL database used with TestStand
We are wanting to set up a SQL server to store the data from TestStand.
How do we determine the hardware requirements for this server? It will be used with 10-30 machines running tests and logging data and another 5-10 machines running queries to pull the data back out for analysis. The result data size will range from 50-25,000 results per run (run times are 1 minute for 50 result tests and 5 hours for the 25,000 result tests).Hi,
database design and hardware requirements are never easy. There are a lot of scientific papers on work load tests and requirement assumptions. I can not give a short answer which machine to use. Just some ideas and starting points.
The most important parts of a database system with large data sets are network bandwidth, RAM and storage bandwidth. With smaller data sets and more complex transactions the CPU becomes more important.
In this TS case the data sets are usually rather small. If the queries are not too complex, the requirements seems to be not too high.
Database performance is usually measured in transactions per minute (tpm). Special database servers can perform several thousands tpm and have costs starting at about 15 $ per tpm. See MS' ad page for a g
ood starting point: http://www.microsoft.com/sql/evaluation/compare/benchmarks.asp
You may also visit the TPC.org homepage.
To be more specific.
I'd choose a modern Intel-based system like P4-3MHz (that have virtual multiprocessors) with at least 512 MB RAM and a RAID5 hard disk storage system (not nercessarily SCSII) with at least 3 single HDs. Use a 100 MB LAN connection at least, best with a switch. Don't forget backup!
Check also the pages of your preferred database provider.
I am on a starting point here too. We have chosen mySQL, which runs (at least now) on the very same machine where TS & LV are running. We plan to test this setup with increasing burden to get a practical assumption of the HW requirements. The planned final setup will have up to 5 test stations and 5 query stations. We'll run about 50 rather complex tests of about 4 hours each that operate in parallel on the test stations.
HTH and
Greetings from Germany
Uwe -
HTTPS requirements for Private Distro iOS 7.1
A warning to anyone who uses private distribution, iOS 7.1 requires the hosting URL to be HTTPS and appears to require a valid SSL cert. The change took me by surprise this afternoon.
Fooboi wrote:
Would hate to have to reset my phone for this ...
A Reset is very fast and easy, and no loss of data. Perhaps you're thinking of Restore, but a Reset is just a matter of pressing and holding the Sleep/Wake and Home buttons until you see the Apple logo, then release and let the device reboot. -
Hardware Requirement for Oracle Database
Hi, i need help, i wanna build new server with some requirement of total user who is connect, size of database n etc. Can u tell me how to calculate ram size, processor need and etc to build good server for my company need?
I remember Oracle before have some excel where we can fill the total user n other information n from that information the excel will tell u how many processor do u need, what ram size do u need n other else. Can someone help me find this excel??user11257918 wrote:
There is 3360 user who wil connect concurrently to the database and there is 20 million customers in my master customer.
Is really don't have some formula or other things that help me to decide the number of processor and size of the ram?There are formulas. They are generally useless. Any formulas are only as good as the assumptions and, unless you know the assumptions you will not know whether the formulas are in any way valid.
Questions you need to answer are all around workload.
3360 concurrent users who only ask about sysdate will not load the system much. 3360 users who only ask 'what is the customer phone number' using only a properly indexed customer name field will likely not have a huge impact, although you may need to play with the index and the buffer cache for a bit. 3360 users who do concurrent 50 table joins with 20M row sort-merges will have a different impact on the system requirements. And 3360 users who perform updates and inserts using randomly assembled dynamic SQL with no bind variables at all will have a completely different impact again.
(Then again, user 3360 is known to ask some tough questions. But provide good answers as well. ;-) Have to say, I haven't seen much from 3360 lately. Different handle?)
The usual way to get a reasonable idea of the size is to prototype or benchmark. The best benchmark is a copy or simulation of your proposed environment. Skip this, and you will forever be 'right sizing' the app, no matter how much you calculate.
One way I've seen it successfully done is to do a small benchmark,use the SpecMARK tables (http://www.spec.org) to scale. -
Which archivelogs are required for restoring database
I'm moving to RMAN direct to tape backups (via Netbackup). I'm hoping someone can clarify for me which archivelogs are needed for restoring/recovering a RMAN "hot" backup.
I will have two tape pools with different retention periods:
- standard (kept for 2 months)
- long term (kept for 7 years)
I plan to backup as follows:
- archivelogs every 15 mins direct to the standard pool
- daily backups to the standard pool
- monthend backups to the long term pool
Month ends will either be a full or a full plus a cumulative (level 2) (depending on the weekday that month end falls on).
The bit I'm concerned about is archivelogs. After 2 months they will be expired on tape. But do I need archive logs in order to restore the month end backups?
At the moment I record the SCN before the backup begins and after it finishes (retrieved via select first_change# first_scn from v$log where status = 'CURRENT'). Before recording the post-backup SCN, I force a logfile switch.
For clones, I always restore to the post-backup SCN that I previously recorded (rather than using the tag I associated with the backup).
So a few questions related to restoring after the 2 month window:
- do I need the archivelogs created during the timespan of the backup ran in order to restore to the post-backup SCN?
- If so, is just backing up these archivelogs (to the long term pool) by specifying the range of pre-backup SCN to post-backup SCN sufficient or are additional archivelogs likely to be required?
- if I restore the database and don't specify an SCN but just specify the tag used at the time of the backup, will archive logs be required at all? In this case what would be the state of the restored database - would it be as it was at the beginning or at the end of the backup?Hi user4835675,
do I need the archivelogs created during the timespan of the backup ran in order to restore to the post-backup SCN?Yes.
If so, is just backing up these archivelogs (to the long term pool) by specifying the range of pre-backup SCN to post-backup SCN sufficient or are additional
archivelogs likely to be required?Can you do a skip of the daily backup schedule duing the monthend backups run and run the "archivelogs every 15 mins" job to the long term pool?
Or temporarily stop the "archivelogs every 15 mins" job during the monthend job and run the monthend backup with the "backup database plus archivelog" clause?
if I restore the database and don't specify an SCN but just specify the tag used at the time of the backup, will archive logs be required at all?Yes, you need archivelogs to recover the datafiles to a consistent state.
In this case what would be the state of the restored database - would it be as it was at the beginning or at the end of the backup?You can only restore to a point in time which past the end of the backup.
Rgds,
Tycho -
I am using numbers as a CRM and one of my columns is called 'Next Action Required' i.e
Next Action Required
Email Douglas on the 02-12-14 about information needed for tour
Call Thomas 0446 393 about booking trip
Thank you in anticipation
DougUtterly bizarre. I can't see your two follow-up posts when I'm logged in. However...
Things would be simple if Apple implemented Data Detectors for dates in Numbers, as they have in applications like TextEdit and Script Editor. Then you’d have a system-level means of quickly moving from a selected date in your CRM spreadsheet to Calendar.
Until that happy day arrives, though, we can approximate it with AppleScript and Automator.
First, make sure your Numbers table is called CRM and your column has the header Next action required. (You can change these if you want but you’ll also have to modify the script.) This is the basic setup:
Then, launch Automator and create a new workflow. From the Choose a type… dialog, specify Service.
At the top of the workflow, “Services receives selected…” should be set to text in Numbers.app. (You'll need to choose Other... from the pop-up and then navigate to Numbers.)
In the Library menu at the left, click on Utilities, then drag a Run AppleScript action into the main Automator pane. Delete all the boilerplate text from the script.
It should look like this:
Now copy and paste the script below into the Run AppleScript action.
on run {date_string}
tell application "Numbers"
tell document 1
tell active sheet
try
set crm_table to (item 1 of (every table whose name is "CRM"))
on error
display dialog "No CRM table in this sheet"
return
end try
tell crm_table
try
set the_selection to selection range
set the_row to row 1 of the_selection
on error
display dialog "Select some text in a cell"
return
end try
set the_col to item 1 of (column of the_selection)
set header_cell to cell 1 of the_col
if value of header_cell is "Next action required" then my run_calendar(date_string)
end tell
end tell
end tell
end tell
end run
on run_calendar(date_string)
try
set date_string to date_string as string
set real_date to date (date_string)
on error
set real_date to (current date)
end try
tell application "Calendar"
activate
switch view to day view
try
view calendar at real_date
on error the_err
display dialog the_err
end try
end tell
end run_calendar
Click the little hammer at the top to make sure that the script compiles (indents and colours in). If it doesn’t, you may need to sort out some line breaks in the copied and pasted script.
Now save the workflow as Go to date in Calendar. Quit Automator.
So what does the script do? Basically, it looks at the selected text in a Numbers cell and checks to see that the table name is “CRM” and the column header is “Next Action Required”. It then tries to convert the selected text into a valid date. If it can, it takes you to that date in Calendar. If it can’t, it takes you to today’s date. In both cases it switches Calendar to day view. You have to bear in mind that if you select all of “10/10/14 Call John re contract” it won’t understand that part of this is a date, and won’t go to October 10. You'd have to select just "10/10/14"
To run the Service, right-click or control-click on the selected text and go down to Services, then choose Go to date in Calendar:
Alternatively, run it from Services in the main Numbers menu.
You can set up a keyboard shortcut for any Service in System Preferences - Keyboard - Shortcuts. Post back if you need more info about this.
Tested with Numbers 3.5 (2109). This will not work with Numbers '09.
Hope this works for you, let us know how you get on.
H -
Prerequisite required for SAP Archival Link
Hello Friends,
I am new to SAP technology and have to work on SAP Archival Link. Could any body help me out how can i start off with.
What are the Pre-requisite for installing andf configuring SAP Archival Link.
Can anybody send me the SAP Archival Link Documentation.
Thanks well in advance.
my email id is [email protected]
Regards,
Ravi Shah<b></b>Hi Prasad,
I am unable to access the url link which you have forwarded it is poping up with Authentication Message box and asking for (SAP Service Marketplace) Username and Password.
Please advise what to do?
Thanks and Regards,
Ravi Shah
Message was edited by: Ravi Shah
Maybe you are looking for
-
What is the error report thing
evertime i try to get on itunes, a box pops up and says itunes has encountered a problem and needs to close. We are sorry for the inconenience. and then it gives me the option to send the error report or not to send. i tried both and nothing happens.
-
Version Cue CS3 and PSE 4 with Adobe Bridge
will Version Cue on CS3 work with PSE4 and Adobe Bridge and if possible, please direct me to "how to set it up." Desperate to exchange .psd files with another user in another town.
-
Director 12 is too slow making clones from 3D models
Why is Director 12 so slow making clones from 3D models? It takes 2 minutes to make 1200 clones from 10 very simple 3D models. And that's only part of the game initialization time. The complete game initialization takes 3.5 minutes, including the
-
Newbie question about Oracle Parallel Server and Real Application Cluster
I am trying to find out what kind of storage system is supported by the 9i Real Applicaton cluster. I have looked at the 8i Oracle Parallel Server which requires raw partitions and therefore NAS (network attached storage) that provides an interface a
-
Performance issue - in 4.7 ( previously worked in ECC 6 only)
Hi experts, I have worked on ECC 6.0 and now i have got a new job and now working in 4.7 for support project. I feel it is very difficult after working in 6.0. I have not used occurs 0, like etc.. statements in 6.0. In 4.7 what are the things that i