DBlink in synonym

Hi
Can I create dblink in synonym instead of table
Regards
Jewel

Dear user623166,
I have tried your interesting question on database links;
SQL> create synonym TEMIPMAPPING_LINK for TEMIPMAPPING;
Synonym created.
SQL> select count(*) from TEMIPMAPPING@TEMIPMAPPING_LINK;
select count(*) from TEMIPMAPPING@TEMIPMAPPING_LINK
ERROR at line 1:
ORA-02019: connection description for remote database not found
SQL> create public synonym TEMIPMAPPING_LINK for TEMIPMAPPING;
Synonym created.
SQL> select count(*) from TEMIPMAPPING@TEMIPMAPPING_LINK;
select count(*) from TEMIPMAPPING@TEMIPMAPPING_LINK
ERROR at line 1:
ORA-02019: connection description for remote database not found
SQL> select count(*) from TEMIPMAPPING@TEMIPMAPPING;
select count(*) from TEMIPMAPPING@TEMIPMAPPING
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-02063: preceding line from TEMIPMAPPING
SQL> create synonym ACMP_LINK for ACMP;
Synonym created.
SQL> select count(*) from v_ms_trail_snc@ACMP_LINK;
select count(*) from v_ms_trail_snc@ACMP_LINK
ERROR at line 1:
ORA-02019: connection description for remote database not found
SQL>I hope that is what you have asked.
Regards.
Ogan

Similar Messages

  • Oracle 10g (10.2.0.4) Database apparent hang

    Hi All,
    We have an installation in which three database cooperate to give functionality for our 24x7 banking application. One database is used as a read-only reference database and is only read after it has been recreated (via import/export). The alert log shows this:
    Mon May 3 22:08:07 2010
    kkjcre1p: unable to spawn jobq slave process
    Mon May 3 22:08:07 2010
    Errors in file /u01/oracle/product/10.2.0/admin/p014banr/bdump/p014banr_cjq0_2211852.trc:
    I've trolled the web for references to this problem and all are referring to an ORA error that accompanies this, but I can't find such and error in my alert log or the trace file.
    Here is the top section of the trace file mentioned above:
    $ more p014banr_cjq0_2211852.trc
    /u01/oracle/product/10.2.0/admin/p014banr/bdump/p014banr_cjq0_2211852.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /u01/oracle/product/10.2.0/db_1
    System name: AIX
    Node name: bcrdrs03
    Release: 3
    Version: 5
    Machine: 00CE01014C00
    Instance name: p014banr
    Redo thread mounted by this instance: 1
    Oracle process number: 13
    Unix process pid: 2211852, image: oracle@bcrdrs03 (CJQ0)
    *** 2010-05-03 22:06:41.182
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-05-03 22:06:40.710
    *** SESSION ID:(159.1) 2010-05-03 22:06:40.710
    Waited for process J002 to initialize for 60 seconds
    *** 2010-05-03 22:06:41.182
    Dumping diagnostic information for J002:
    OS pid = 712956
    loadavg : 2.07 1.79 1.52
    swap info: free_mem = 25.43M rsv = 66.00M
    alloc = 7061.96M avail = 16896.00M swap_free = 9834.04M
    F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
    240001 A oracle 712956 1 0 60 20 e996510 92388 22:05:40 - 0:00 ora_j002_p014banr
    open: The file access permissions do not allow the specified action.
    Warning: executed in non-root mode
    procstack cannot verify that /unix matches the running kernel.
    Kernel symbols might not be validated.
    712956: ora_j002_p014banr
    0x0000000100085f44 kghlkremf(??, ??) + 0x44
    0x00000000000000a4 start() + 0x7c
    0x0000000100095d5c kghfre(??, ??, ??, ??, ??) + 0x57c
    0x0000000100310f7c kghxcb_internal(??, ??, ??, ??) + 0x17c
    Ask Tom and Burlesson refer to memory issues. Earlier in the month/late last month I found that a permission error was to blame on 10g installations on AIX (our installation is on AIX 5.3 ML8) -- I've checked and the external jobs controller permissions are correct, yet I'm still faced with this strange hang. The database is in no archive log mode, and not being shutdown at the time -- there is a massive truncate and import running at the time to re-create the database. This is what hangs and prompts the operators to call. The exact same process has been followed for the last two years without issues. It's only in the last week that this has been occurring. At first I thought it was the go-love on 6 April 2010 but we only started experiencing this apparent hang (cannot log in using SQL*Plus either as sys as sysdba or using OS authentication). Killing the pmon process and restarting the DB works and shows no sign of problems. I'm just frustrated as to the lack of error messages in the alert log when this happens and how to stop this from happening again.
    If anyone needs more information kindly post your question and I will answer as soon as I can. Your help and cooperation in this matter is appreciated.
    Kind Regards,
    Andries Burger

    I've updated the processes in the database and increased the sessions. I've done some investigatio into the number of processes and sessions used by our 'off the shelve' product and the numbers are considerably different from what the vendor claimed. Our usual pattern has been a hang then one 36 hour period of processing without issues, then another hang. Since posting this - I restarted the DB that same hour - we've had a peacefull 24 hour period, so if the process and session increase did not help, I'll be looking at another support call from operations in the next nine hours. I however this has fixed the problem, or at least this symptom, I'll mark this as having solved the question.
    Another aspect I've left off. The application makes use of three database (this problematic one being one) and a number os public synonyms to tables stored in one of the other databases. How do I determine the number of 'sessions' that would flow over a dblink and/or a synonym? Sessions connecting from outside can be more than one session on a physical connection - would the same hold true for dblinks and synonyms? (If that is the case I might have to increase the sessions some more than where they are at present.
    Kind Regards,
    AB

  • Interactive Reports - SQL Source Question

    Background
    Apex 3.1 is installed on Oracle 10g instance on local machine but all data is stored on a remote machine on Oracle 9 & 10 instances.
    This data is also used by another piece of software, which directly manipulates the data.
    The Apex Application that I am developing is to be used as a Quick Find/KPI Reporting tool and is setup to utilise DBLinks and Synonyms.
    Within the remote data, we have a mapping table that contains user specific alias' for field names, which the users set using the other piece of software. There can be up to 5 mappings per table field each defined as LNG01, LNG02,etc.
    In order to provide the same field Alias' in the Apex application, I have created a PL/SQL function to return the field alias and return a string value containing the final SQL.
    Problem
    In standard reports, this would work correctly as you could return a SQL statement in a string and it handled it with no problems.
    However, due to Interactive Reports not supporting this, I have tried to find code to pass in the string SQL Statement to return a TABLE or PIPELINED datasource.
    The string SQL statement will vary for each time it is used so the string SQL statement is effectively built as dynamic SQL
    This causes as problem as I will never be able to define the ROWTYPE for a type TABLE variable as the field names will not be constant.
    Can you tell me if there is any way to create a SQL source that could be used for the Interactive Report based on dynamic SQL?
    Alternatively, if you can provide any alternatives to finding a solution I would be most grateful.
    Apologies if this question has been posted before.
    Thanks in advance.
    Stuart

    Stuart,
    You could:
    1) Create page items, one for each dynamic column header (e.g. P1_OBJECT_NAME_HEADER, etc).
    2) Create a page process, to run when the page is loaded, that populates each item with the appropriate text. This can pull the column header text from your remote source.
    3) Use a static query as your interactive report source:
        select objname,
               objuniqueid,
               objtypecode,
               objsitearea,
               objdesc,
               objdesc2,
               objlocationid,
               objcommission
          from cdoweb_om4) Edit the interactive report attributes -- use APEX substitution string syntax to reference the item values (e.g. "&P1_OBJECT_NAME_HEADER." without the quotes) instead of static column headers.
    For more information on using substitution strings:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#BEIFGFJF
    - Marco

  • PARTITION TABLE 이란?

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-13
    PARTITION TABLE 이란?
    =====================
    PURPOSE
    partition table에 대한 기본 개념입니다.
    SCOPE
    8~10g Standard Edition 에서는 Partitioning Option 은 지원하지 않습니다.
    Explanation
    ORACLE 8에서 제공하는 partition table 에 대해 알아보자.
    1. Partitioned Table이란?
    partitioning 이란 큰 object 를 작고 manage 가 가능하게 분리하는 것을 의미하며,
    table 이나 index 에서만 가능하고 cluster, snapshot 은 불가능하다.
    각 partition 은 별개의 segment 에 저장되어진다.
    Oracle8에서 table 은 기본이 되는 key value 에 의해 partition 으로 분리되어진다.
    각 partition은 독립적으로 운영된다.
    예를 들어 table partition 은 DML (insert, update, delete) 문에 의한
    transaction 을 다른 partition 에 영향을 주지 않고 복구가 가능하다.
    DBA_TAB_PARTITIONS 에 각 partition 의 storage 정보 등을 갖는다.
    2. 어떻게 partitioned Table을 생성하는가 ?
    partition key(s)와 개개의 partition 에 범위를 주어 생성한다.
    이 partition 이름은 주어질 수 있으며 만일 생략되면 ORACLE 이 SYS_Pn 으로
    generate 한다.
    예제 :
    emp partition 을 EMPNO column을 partition key 로 하여 생성해 보자.
    CREATE TABLE emp
    (EMPNO NUMBER(5),
    PARTITION BY RANGE(EMPNO)(
    partition emp_p1 VALUES LESS THAN (2000),
    partition emp_p2 VALUES LESS THAN (4000),
    partition emp_p3 VALUES LESS THAN (MAXVALUE));
    select * from emp partition (emp_p3);
    ACCT_NO PERSON SALES_AMOUNT WEEK_NO
    1000 abc 10 30
    insert into emp partition (emp_p3) values (7000, 'bcd', 10, 30);
    3. partition table 관련한 dictionary 정보
    . storage parameters
    --> DBA_TAB_PARTITIONS
    . partiton table 의 upper partition bound
    --> select high_value, partition_position from sys.dba_tab_partitions
    where table_name = 'SALES';
    4. Partitioned tables의 제약점은?
    a) Datatype 제약
    Partitioned table은 LONG 이나 LONG RAW datatype을 가질 수 없다.
    또한 LOB datatypes (BLOB, CLOB, NCLOB, or BFILE), object types을 가질 수
    없다. 이 LOB type 은 V8.1부터는 가능할 것으로 기대된다.
    b) Clusters 는 partition 될 수 없다.
    c) Bitmap 제한
    bitmap 은 local partitioned table 에서만 가능하고 global indexes 로는
    불가능하다.
    d) Physical 제한
    Partitioned table은 여러 개의 database에 걸쳐 있을 수 없다.
    오직 1 instance 에서만 가능하다.
    5. Local Prefixed와 Local Non-Prefixed index란?
    Local index란 partitioned table 의 index로 이는 오로지 한 partition 의
    row들을 나타내는 ROWID 를 갖는 index 이다.
    이는 주로 partition table 의 partition key 로 사용되어진다.
    이를 equi-partitioning 이라 한다.
    Prefixed index는 partition key 에 대응하는 leading index key(s) 이다.
    Non-Prefixed index 는 leading column 이 되는 partition key 를 포함하지 않는
    index key 이다.
    6. Global index란?
    global index 는 prefix 만 제공하며 non-prefix 는 제공하지 않는다.
    global Index 는 전체 table 의 ROWID 처럼 사용되어진다.
    7. partitions을 사용하는 방법?
    Partition-Extended Table Name을 사용한다.
    즉 "schema.table PARTITION part_name" 를 사용하는데 schema 는 schema owner
    이고 table은 base table 이름이며, PARTITION 은 써도 되고 안 써도 되는 용어이고,
    partition_name은 partition 의 name 이다.
    이 partition-extented table 이름은 다음 문장에서 사용되어진다.
    INSERT
    UPDATE
    DELETE
    LOCK TABLE
    SELECT
    Q) partition 에 insert 시:
    SQL> insert into sales partition (p8) values (7000, 'bcd', 10, 30);
    Q) partition을 delete시:
    SQL> delete from sales partition (p8);
    Q) partition을 update 시:
    SQL> update sales partition (p8) set sales_amount = 20;
    Q) partition을 select 시:
    SQL> select * from sales PARTITION (Q4);
    8. partition-extended table 이름의 제약?
    . remote schema object를 포함할 수 없다.
    partition-extended table name 은 dblink 를 포함할 수 없으며, dblink 를 통해
    table 로 변환 가능한 synonym 을 포함할 수 없다.
    만일 remote partition의 사용을 원할 때에는 remote site 에서
    partitioned-extended table 이름을 사용하여 view 를 생성할 수 있다.
    . partition-extended table 이름은 PL/SQL에서 사용되지 않는다.
    partition-extended table 이름을 사용한 SQL 문은 DBMS_SQL package 를 통해
    만일 사용하고자 한다면 view 를 사용하여야 한다.
    . 오로지 base table 만 허용된다.
    partition extension 은 base table 에만 허용되고 synonyms, views, 그외 schema
    에서는 허용되지 않는다.
    9. Export/Import 시 Table-Level 과 Partition-Level 의 차이점?
    테이블 단위의 export에서는 partitioned or non-partitioned table 전체가 index
    와 그 table 에 dependent 한 다른 모든 object 가 함께 export 된다.
    즉 partitioned table 의 모든 partition 이 export 된다. (이는 direct path
    export and conventional path export에 모두 적용.)
    또한 모든 export 모드 (full, user, table) 가 테이블 단위의 export 를 support
    한다.
    partition 단위의 export에서는 사용자가 테이블의 하나 또는 그 이상의 partition
    을 export 할 수 있다.
    Full database 단위나 user mode 는 partition-level의 export 를 support 하지
    않는다. 오직 table levle 만 가능하다.
    또한 incremental export (incremental,cumulative, and complete) 가 full
    database mode 에서만 가능하기 때문에 partition-level export는 incremental
    exports를 지원하지 못한다.
    Partition-level import는 export 되어진 non-partitioned table을 import 하지
    못한다. 그러나, table-level 의 import로 non-partitioned table 로부터
    partitioned table 이 import되어진다.
    즉 partition-level import 는 export 되어진 table 이 partitioned 되어 있고
    export file 에 있을 때에만 가능하다.
    export file 의 partition name 이 valid 하지 않는 경우 import 시 경고
    message 를 발생한다.
    모든 경우 partitioned data 는 import 시 선택적으로 가능하게 export 되어 진다.
    export 나 import 시 table name 을 지정 시는
    TABLES=schema_name : tables_name : partition_name 으로 사용한다.
    Partition 단위의 export 는 table 내의 특정 partition 을 한개 또는 그 이상을
    export 가능하게 한다.
    이 때 partition name 이 주어지지 않으면 table 전체가 사용된다.
    다음은 partiotion level 의 export 예제이다.
    exp system/manager FILE = export.dmp TABLES = (scott.b:px, scott.b:py,
    mary.c, d:qb)
    이 예제에서 scott.b 는 반드시 partitioned table이고 px ,py 는 2개의
    partition 이다.
    mary.c 는 partitioned 또는 non-partitioned table 이다. 그러나 d table 은
    반드시 partitioned table 이며 qb 는 그 partioion 중의 하나이다.
    만일 table-name이나 같은 table 의 partition-name이 중복 사용되어지면
    export 는 error 를 발생한다. 예를 들어 다음 partition-level의 export 명령어는
    table sc 와 partition px 가 중복 사용되어 error 를 발생한다.
    exp system/manager FILE = export.dmp TABLES = (sc, sc:px, sc)
    10. partiton table 또는 view를 어떻게 non-partitioned table로 변환시키는가?
    table 을 변환하기 위해 dummy table 을 생성하고,
    alter table EXCHANGE PARTITION 명령어를 통해 수행한다.
    이 명령어는 매우 빨리 data dictionary 를 update 시킨다.
    SPLIT PARTITION 은 매우 큰 partition table 이나 view 를 handling 하는 데
    유용하다.
    SQL:
    1. partition을 갖는 dummy_t table 을 생성
    2. alter table EXCHANGE partition T with dummy_T
    3. drop table T
    exp/imp:
    1. export the table
    2. drop the table .
    3. partiton 을 갖는 table 을 다시 생성
    4. table data 를 import 한다.
    11. table partition을 결합하는 법?
    export/import:
    partition-level 의 export, import 를 통해 가능하다.
    1. partition data 를 갖는 temporary table을 생성한다.
    2. drop the partition to be merged
    3. insert into table (select * from temporary table)
    4. drop temp.
    그러나, table partition 을 분할하는 방법은 export, import 를 통해 불가능하다.
    Example
    Reference Document
    ------------------

    Before we go too far with this, if you manually query with TO_DATE on the variable instead of TO_CHAR on the column, does the query actually use the index?
    The TO_CHAR on the column will definitely stop Oracle from using any index on the column. If the query will use the index if you TO_DATE the variable, as I see it, you have three options. First, fix the application problem that won't let you use TO_DATE from the application. Second, change the application to call a function returning a ref cursor, get the date string as a parameter to the function, and do the TO_DATE in the function.
    Third, you could consider creating a function-based index on TO_CHAR(transaction_date, 'dd-Mon-yy'). This would be the least desirable option, particularly if you would also be selecting records based on a range of transaction_dates, since it loses a lot of information that the optimizer could use in devising an efficient query plan. It could also change your results for a range scan.
    John

  • Different database connection or proxy user change

    Hi forms guys,
    in everyday life I am fulltime DBA, so please forgive my spare forms word pool.
    Our users open a forms application that displays a menu with forms applications the user has access to. Users can then click on the menu items and another form pops up. Now having reviewed the code, I can say that the opening of the new forms is done by calling the builtin OPEN_FORM. As parameter "SESSION_MODE" for this function, "SESSION" is supplied. If I understand correctly, this means that another session using THE SAME username/password/connectionstring is created (for the purpose of parallel transactions in parent and child form).
    At the moment each and every user (~400) has it's own database account which has roles (depending on the applications they are granted access to) assigned and also sometimes owns dblinks and synonyms. We want to get rid of them by storing the credentials in OID and just create ONE single application user for every application we host. This user shall contain all nescessary objects such as dblinks and private synonyms.
    The enduser then logs in using the proxy mechanism. For example if user XYZ (defined in OID) wants to start application ABC, then he/she connects like XYZ[ABC_APPUSER]/XYZPASSWD. This must occur when the form opens, directly after the OPEN_FORM call.
    Now my question: Is this possible somehow? Is there a way to have different database connections within a single forms window, if there are different forms? Or is it possible to make a switch to another proxy user within forms? e.g. JDBC has the ability to quickly switch to an other proxy user, without having to re-establish the whole session.
    All I have read so far tells me, that it is not possible. But I would really like to hear that acknowledged by experts. Also other, perhaps better ideas for our intention are welcome.
    Kindest regards
    Matschbirne

    Not really sure how to answer your question other than to say that from within your form's pl/sql you can connect and disconnect as often as you like programatically. However, you can only have one connection at a time (as far as I know). So if you connect as SCOTT and later want to do a login as FRED, you can do so, but SCOTT will no longer be connected.
    Forms does support using Oracle SSO, but for the most part cannot directly access OID. Also, the db login information needed by Forms (when using SSO) is stored in a RAD (Remote Access Descriptor) in OID. The RAD behavior is unique to Forms and Reports. For each SSO user there is a related RAD. At the moment, there is no provided way to have RAD groups (e.g. Admin, Sales, Guests, etc). So each user get their own RAD.
    If you are using Forms 11.1.x, Forms now supports db proxy users.
    More information about SSO and Proxy users with Forms can be found in the Forms Deployment Guide:
    http://docs.oracle.com/cd/E24269_01/doc.11120/e24477/sso.htm
    In the code, you can control the connection using the LOGON, LOGOUT, and LOGON_SCREEN built-ins. Refer to the Forms Builder online help for details on how to use these.

  • How can I access a database remote without using dblink, synonyms,aliases?

    My store procedure access a remote tables using dblink, synonyms, alias, but by business company requirenments I nedd to use another data base access method. My PL/SQL statement looks like
    select c.cus_id, c.cus_name, p.bankaccno
    into v_cus_id, v_cus_name, v_bankaccno
    from customer c, payment@finantial p
    where c.cus_id = p.cus_id
    Are any method else to connect to several remote databases concurrently?
    If Yes, plase say me how is it, or tell me where do I obtain some examples, or any documentation.
    Edited by: user518321 on Apr 21, 2009 1:58 PM
    Ok, But I must not use any of these data base access method, metioned: dbliks, aliases, synonyms.
    Edited by: user518321 on Apr 21, 2009 2:05 PM
    Ok, It is enough for now, I am surprised for the response time and for their arguments, thanks a lot.
    Edited by: user518321 on Apr 21, 2009 2:50 PM

    If you want to access a table in a remote database using SQL, you will need a database link. It would be exceptionally odd for the business to require that you access a remote database and to prohibit the use of database links. What is the business reason for that combination?
    If you want to look into rather more esoteric solutions, you could load a JDBC driver for the remote database, write a Java stored procedure that queries the remote table using that JDBC driver, and then cobble together some PL/SQL that joins the two result sets. You won't be able to reference the remote table in SQL and the solution won't scale well as data volumes increase and you'll be writing a whole lot of code to manually join tables together, but it does avoid database links. Of course, whatever concerns lead to the ban on database links would probably apply to loading a JDBC driver into the database and writing Java stored procedures to access the remote database, but since you haven't explained the reasoning behind the restrictions, we're just guessing.
    Justin

  • SQl developer v1.1 doesn't show synonyms that use dblinks.

    Sql developer v1.1 doesn't show in the list of synonyms those whose destiny is accesed through dblink. It only shows the synonyms of local objects.

    I found SQL Developer support for SQL Server too limited for anything other than simple queries on tables/views.
    Squirrel SQL client (open source, free and also java based) may prove a better tool.
    http://squirrel-sql.sourceforge.net/

  • Htmldb 1.6 synonym / DbLink issue

    Hi,
    1. I've tested the following issue in 3 version 1.5 , 1.5.1 , 1.6 and it seems issue is yet not solved.
    2. When you create a publich synonym for a remote table or even use the dblink directly , you can't based anythy form / report etc only using a free query method.
    3. Is there any option to create this not using manual selects / handling ...
    Thanks
    Etay G.

    To create the views:
    SELECT 'CREATE OR REPLACE VIEW '||Lower(object_name)||' AS SELECT * FROM '||Lower(object_name)||'@database_link;' FROM user_objects@database_link
    WHERE object_Type IN ('TABLE','VIEW');
    Just replace 'database_link' with your database link.
    Sequence number generators are tricky because you cannot create a view to select the nextval of a sequence number generator in another database over a database link. You have to just append the database link to the sequence reference or create a view which calls a function in the remote database which in turn returns the nextval of the sequence.

  • How to declare synonym for a package function with a DBLink

    Hi,
    I have a PL/SQL package 'pkg'
    and a function in the package 'func'
    at another db using a dblink.
    How to I create the correct syntax to create the synonym for this package and function.
    create synonym --- for ---@dblink
    Thanks.

    CREATE SYNONYM <name> FOR <OWNER>.<OBJECT>@<DB_LINK>
    {code}
    the object in this case would be pkg.func
    Edited by: Tyson Jouglet on Sep 25, 2008 5:12 PM                                                                                                                                                                                                                                                                                                                                               

  • Cannot see columns under synonym in dblink

    Hi Everybody :)
    I need your suggestion.
    I have one synonym in my local server and after reversing, i can see all the coulmns (have included "includeSynonyms, ture" ).So its working fine.But
    when i am using one dblink for it, i can see the synonym present in dblink but after reversing i cannot see the columns.I tried RKM Oracle but getting error in step (Getting partition for the Synonym). After looking the code i made some changes and got rid out of this error.Still columns are not reflecting.
    Please suggest :)
    Thanks
    Bhabani

    Hi Bhabani,
    Just a thought.
    Can you try to create a view on that DBLINKed Synonym and reverse that view ?
    Thanks,
    Guru

  • ORA-01867 rised when synonym with DBLink used

    Hi,
    I've created a BC View Object in JDeveloper 10.1.3.4.0 and specified a query for it which is using
    synonym with Database link to fetch data from.
    When I am trying to test this VO using Application Module test option
    I get:
    (oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation. Statement: select *
    from TEST_S_TABLE
    ----- LEVEL 1: DETAIL 0 -----
    (java.sql.SQLException) ORA-01867: the interval is invalid
    I am connecting to database with user who is owner of DBLink and this synonym.
    Synonym and DBLink are not Pulblic.
    Thanks for any help

    Hi John,
    Thanks for reply.
    Yes, I tried to run this query using SQL Worksheet from JDeveloper Tools and it
    ran successfully.
    I ran it successfully also in PL/SQL developer with bind variables to filter date period and union with table from current database.
    Here are columns of table which referenced by synonym.
    BRCH      VARCHAR2(3)               
    ACC          VARCHAR2(20)                    
    DATE1     DATE                    
    BAL1          NUMBER(24,3)                    
    BAL2          NUMBER(24,3)                    
    BAL3          NUMBER(24,3)                    
    BAL4          NUMBER(24,3)                    
    DR_TUR1     NUMBER(24,3)                    
    DR_TUR2     NUMBER(24,3)                    
    CR_TUR1     NUMBER(24,3)                    
    CR_TUR2     NUMBER(24,3)                    
    ACC_CCY     VARCHAR2(3)                    
    BAL5          NUMBER(24,3)                    
    UNCOLL     NUMBER(24,3)                    
    BLOCK     NUMBER(24,3)                    
    Thanks.

  • 6i Report Crashes at Synonym using DBLink

    Hello,
    I have a 6i Report, (lets call it repx.rdf) consisting of a data model and no layout.
    It is used to generate xml.
    I have two databases: db1 (with schema jack) and db2 (with schema jill).
    To compile this report, my connection is as follows:
    jack/jack@db1
    In db2 there is a package called:
    pkg_fetch_water
    In the report, i have a line of code as follows:
    pkg_fetch_water.fetch('Y');
    To allow this call, i have created a database link and synonym:
    create public database link jtoj connect to jill identified by jill using 'db2';
    create public synonym pkg_fetch_water for jill.pkg_fetch_water@jtoj;
    In sqlplus, the call to pkg_fetch_water.fetch('Y') works fine.
    When I try to compile the report from Developer 6i, the entire developer crashes.
    I receive no error messages.
    Any ideas what is wrong here?

    There may be nothing wrong. With you or your work, that is.
    However, Reports will crash at the drop of a hat. It is not only unstable, it is not robust, i.e. it can't handle many of the anomolies a program of its age should.
    It doesn't get any better with newer versions, either. Well, that's not quite fair. It gets a little better in v10R2 because it, at least, has a crash recovery feature which saves your work in the background and will recover from that point when Reports is restarted.
    Auto recovery is a wonderful feature. Now if only Oracle would get off its a$$ and begin addressing the fatal memory flaws in Reports.

  • Insert a blob in remote database using dblink

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

  • Unable to parse query when using dblink in forms 4.5

    Hi,
    I have created a query that uses a DBlink because I need to do query on a table located on another dbase. I've used the query on creating my report using Reports 6i. The report needs to be called from a menu on our system, which was developed under Developer 2000 (forms 4.5). The problem is, when I tried to access the report from the menu, it returns the error 'unable to parse query'. What I did after getting error was to create a dummy module using Forms 6i, and call my report from there. It worked fine.
    By the way, the table that I'm accessing using the dblink is under Oracle 9i dbase, and the dbase of the system that I've been working at is Oracle 8i.
    I don't have any idea on what's causing this error. Is there a compatibility issue when using a dblink located in Oracle 9i database with forms 4.5?
    Thanks!

    Hello,
    Not sure if it is the good answer, but I know that Forms does not recognize dblink and owner.object syntax. You have to create a simple synomym that point to the distant object and use this synonym within Forms.
    Francois

  • Bug in tree view of synonyms owned by other user

    Hi,
    I'm connecting into Oracle 10.2.0.3 whith SQL Developer 1.5.3.0.53 and user SYS as SYSDBA. When I browse tree view of synonyms of another user, the synonyms that include database link don't display !!! If I connect whith that user the synonyms are displayed correct.
    Is this a bug ? There are a solution ?
    Thanks !
    About
    Oracle SQL Developer 1.5.0.53
    Versão 1.5.0.53
    Build MAIN-53.38
    Copyright © 2005,2008 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.0.22.49.35
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.53.38
    Component Version
    ==========     ======
    CVS Version     Internal to Oracle SQL Developer (client-only)
    Oracle IDE     1.5.0.53.38
    Plataforma Java(TM)     1.6.0_06
    Versioning Support     1.5.0.53.38

    Hi there,
    while we support dblinks, we dont support following them thru on synonyms or browsing them either. This is a feature right now and you can vote for this as a feature in a later release by submitting a feature request at sqldeveloper.oracle.com

Maybe you are looking for

  • [Solved] Localtime is messed up, and pacman doesn't work anymore

    Hi everyone, I'm quite new to Arch Linux but I've succeded so far in installing the base system, setting up my wifi card (wasn't easy) and installing xfce4. When I first installed everything seemed to work fine (wifi, dropbox, pacman, etc.) but I not

  • Struts and ADF in Portal

    Hello. We have had a TAR going for some time regarding an issue with Struts and ADF in Portal. This is the summary of the TAR: Customer followed the following document to create his Struts ADF application: Developing an End-to-End Web Application Usi

  • TBW Books

    I am very new to BI and we are getting ready to be very deep in a BI implementation for HR. Luckily the company that I work for has been great about sending me to training and so I have been to BW305 and HR050. This has certainly helped with getting

  • K-anonymity algorithm in sql

    Hi, does anyone have information on how to implemend k-anonymity algorithm with oracle or soemthing relevant? I would be thankful if someone could help me.

  • New Hard Drive and drivers are not installing

    I recently got a new hard drive and now I cannot install drivers from the recovery disk. mobile intel 4 series express chipset family nuvoton CIR Transceiver nuvoton HID CIR Receiver Atheros AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20) Realte