Using sequence on db link

Hi All,
version - Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
I have created a database link as mentioned below-
create database link db_link_test connect to 'schema' identified by 'password' using 'tns name';
I am able to access table like -
select * from table_name@db_link_test;
Now I am trying to acess and use sequence
select schema.test_seq.nextval from dual@db_link_test;
it is giving error -
+ORA-02289: sequence does not exist
02289. 00000 - "sequence does not exist"
*Cause:    The specified sequence does not exist, or the user does
not have the required privilege to perform this operation.
*Action:   Make sure the sequence name is correct, and that you have
the right to perform the desired operation on this sequence.+
Could you please help me out here on this..
Regards,

Use:
select schema.test_seq.nextval@db_link_test from dual;For example:
SQL> connect scott@orcl
Enter password: *****
Connected.
SQL> create sequence seq1;
Sequence created.
SQL> connect scott
Enter password: *****
Connected.
SQL> select seq1.nextval@orcl from dual;
   NEXTVAL
         1
SQL> SY.

Similar Messages

  • Using Sequence with Data Warehouse Table

    I am working on a Uni exercise on data warehousing and am trying to create and populate a table with a sequence on one database with data located on another database.
    For this particular table, I have to reset the primary key (primary keys on operational table start from 4000). In my notes, I have been told to create a sequence first and use yoursequence.nextval in the sub query. I am not very experienced with using sequences and am not sure what a subquery is in relation to them.
    I tried the following but it didn't work. Hopefully it will give you an idea as to what I am trying to achieve:
    create table Region as select region_id_seq, Region_Name, Management_area, Country from dw_op.Sales_Region@q_link;
    Any help with this would be great.

    Thanks again, Justin.
    My instructions tell me to use the schema name along with the db link and it created the table correctly so I'll just have to keep my eye on it.
    Do oyu know how I could use the function initcap to ensure all data is of the same format? I did a bit of research and found that I should be using column aliases which I duly tried but I received an error saying the following line needs a column alias:
    initcap(s.region_name),
    Just thought you may know how this can be done.
    Thanks.

  • How to use Remote key for linking two repository

    Hi,
    I have a challenge like not to repeate common tables like Company_code,Currency,Vendor name,customer name across all repositories.
    Is there any way I can use 'Remote key' to link different repository.
    I can create a Main table with all common attributes required across the repository but want to know how I can connect it to different repository.
    For example to get company-code in Vendor table , how can I link Company-code main table(customized) in another repository may be thru 'Remote key'.
    Going thru java api route is not prefffered for the sake of simple solution.
    Appreciate your help in providing any idea and detail steps for the process.
    -regards, Reo

    could you confirm the name and the existence of this file "IOMM_20121213_060736.csv" ?
    same error like:
    http://www.oracle-base.com/articles/9i/external-tables-9i.php
    if the load files have not been saved in the appropriate directory the following result will be displayed.
    SQL> SELECT *
      2  FROM   countries_ext
      3  ORDER BY country_name;
    SELECT *
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file Countries1.txt in EXT_TABLES not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1Edited by: Fran on 10-ene-2013 23:32

  • Clicking on a link in Mac Mail Firefox does not open in front of Mail--it used too. The link does open but I have to click on the Firefox icon in the Tray to bring it to full screen. Can you please help

    clicking on a link in Mac Mail Firefox does not open in front of Mail--it used too. The link does open but I have toclick on the Firefox icon in the Tray to bring it to full screen. Can you please help.

    Thanks Jason, I had the same problem and did exactly the steps above. Problem solved! You rock! :)

  • How to use Sequence in Forms

    Hi,
    I have an Empno Column, At the time of Opening a Form The Empno Will be displayed by using Sequence.
    If the User doesn't save the Form Then the Empno Generated number will be changed.
    How to write the code to get sequence numbers at Empno columns by using Sequence?
    Thanks & Regards,
    Hari Babu

    Ok, I understand now your question. Since the oracle sequence is commited in a separate transaction, it is not possible to get the no-gap sequence, considering your example. In the other hand, if you don't commit immediately, than two concurrently opened forms could use the same sequence number, so you'll get the duplicate key!
    If you're sure that this couldn't happen, you can manage your own sequencing, storing them in another table. Let's say you reached seq 999: entering the form, you'll read from your sequence table 1000, increment to 1001, and assign it to empno, but without commiting. Next time, you'll get the same number, until you commit form, and at the same time, change in seq table. So another will get 1001.
    Downside of this approach are, as mentioned before, concurrent sessions, which will get the same sequence.

  • Comenting code - style - how to keep coments where you want them - without using sequences

    Silly question maybe about style of commenting.
    Basically i like to use sequence boxes to keep comments on my diagram beside the bits of code that they refere to - otherwise when you use diagram cleanup (which i'm afraid i use all the time) they go anywhere.  This is good - except that i found especially when doing FPGA programming the sequence boxes reduce the amount of parralelism that can go on - since the 'box' needs to finish before any of the outputs can be used.  Is there some other method i should be using instead of sequence boxes to keep text beside elements - without enforcing that a set of elements are fixed in one place?
    Solved!
    Go to Solution.

    I usually use labels of structures (loops, cases, etc) and labels of diagram constants, etc. for comments. In newer versions, we also have wire labels.
    (see also)
    What is your LabVIEW version? Also the LabVIEW 2011 cleanup does a better job keeping diagram comments together with the related code compared to earlier version.
    LabVIEW Champion . Do more with less code and in less time .

  • How to use object collection with linked objects

    <p>Hi,</p><p>I&#39;m using VS2005 Crystal reports in a c# client app (server has database, but client does not have!). So the use of the objects transfered to the client seemed to me a good solution for showing reports on the client. The objects mostly link to several other objects (properties of type <type> or properties of type [] <type>) and the links are correctly configured in database assistant.</p><p>But: Whenever using one of the linked fields, all of the main fields will never show up in the report.</p><p>So, what is the correct way of showing a master / detail report using linked object collections???</p><p> (A small test sample app can be provided upon request)</p><p> TIA</p><p>BP</p>

    What database and connection type are you using? Are you connecting the report directly to the database, or trying to assign the datasource to object data?
    It sounds like you might be trying to use a linked list, collection or other C# construct to pass your data in. This currently isn't supported by the Crystal Reports SDK. You can use a DataSet or a DataTable, and possibly also an IDataReader depending on which version of Crystal Reports you're referencing in your project. Of course you can also connect directly to the database, even if the database isn't on the same machine as the application.
    The way to show master records with detail information is through the use of subreports and linked subreport parameters. Linked subreports take their parameter value from a record in the main report, so that only the data appropriate to that master record is displayed. The guys over in the [report design|SAP Crystal Reports; forum can help you out with this if you have questions on the specifics.

  • Menus created using manual won't link to other Pages

    Created a site and had a menu created using manual which was linked to sub pages within the site. The menu was for specific pages not requiring access from the sites top level menu.
    The menu was working but now it is not possible to edit or replace the menu as there does not seem to be any way of adding the link to the required page. The dropdown box to the side of hyperlink stays greyed out and can't be accessed. This is only happening to links added using the menu widget under manual, ordinary text links seem to be OK.

    Welcome to the Apple Discussions. Confirm that there are no objects overlaying the navbar. How did you change the background, from the Inspector/Page/Layout pane?
    Happy New Year

  • Using query strings in links mysite.verizon web pages

    Has anyone had trouble using query strings in links to other web pages your personal web pages?  I have a link to another web page where I pass an ID using query string but when I click on the link I get a 404 error even though the web page exists (the link appears fine).

    Hello jillibee,
    Maybe this link will provide some assistance for you. http://forums.verizon.com/t5/FiOS-Internet/Personal-Website-Access/m-p/277209/highlight/true#M19266
    Thanks,
    Shamika_Vz
    Verizon Support
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • Problem viewing .xlsx and .xlsm file in DMS using Display from Archive Link

    Hello All,
    We are using IXOS as a content server for storing the documents through SAP Archive Link.
    We are not storing any documents in SAP DMS.
    The client has an requirement to manage .xlsx and .xlsm documents.
    1. xlsx - We defined a new document class xlsx under SAP NetWeaver ..-> ArchvieLink  and made the required mime and sheet settings. This allows to upload a .xlsx file to IXOS server succesfully (using Check in Archive) link.
    But whenever we try to view the file using "Display from Archive", the browser gives a warning message that the file is in different format than xls. Do you want to still open (Standard Excel application message). On clicking yes, the file opens in .xls format instead of .xlsx.
    The client doesn't want to change the format to .xls. What can be done to preserve the .xlsx files.
    2. xlsm - Any clue as to does SAP ECC 6.0 support this file type for DMS? And if how the config settings are to be done?
    I will be grateful any help.
    Thanks.
    Ketki

    Hi Ketki,
    based on your description I think that maybe SAP note 1289314 could help here and made sure that the local copy also has extension XLSX or XLSM.
    Best regards,
    Christoph

  • Instead of using image in a link column can we have button with name?

    Hi,
    In Apex , in report region instead of using image in a link column can we have button with name?
    Thanks,
    Anoo..

    From your wording, it sounds like you used the built-in column link within APEX. You will need to edit your column and remove that so that the column is only containing the definition that is coming from the query (you can also just change the alias used for the column and then the old column with the link will be removed and the new alias will be added against your new button column).
    -- Sharon

  • How to use Combobox to direct link

    Hi all, how can i use combobox to direct link in adf. For example: I have a list of value with combobox, when i selected "Page A" ---> go to Page A, selected "Page B" ----> go to Page B
    Thanks

    Hi,
    How about using a menu model instead of a combo box? Check out this example : Oracle JDeveloper 11g Release 2 Tutorials - Creating ADF Menus for Page Navigation
    -Arun

  • Use of the 'Back' link in Catalog/Portal - Useful info for Catalog Admins

    Some info for anyone out there who may have noticed the small 'issue' with catalog items being duplicated when exiting a catalog using the Portal 'Back' link rather than the 'Return to Application/SRM' link.
    A problem has been identified there where portal navigation causes duplication of catalog data even where no item is selected in the catalog.
    The process might be:
    1. User accesses a catalog (any, SAP or External) and selects/adds to cart an item.
    2. User selects the 'Add Item' button in the 2nd step of the SC GAF, returning to the same catalog.
    3. User clicks on the Portal 'Back' link and is returned to the 2nd step of the Shopping Cart Guided Application Framework
    4. The initial shopped item is duplicated in the shopping cart even though no items were selected by the user.
    To ensure that this does not happen SAP have created note [1445078|https://service.sap.com/sap/support/notes/1445078] which provides the means to remove the 'Back' link thus negating the possibility of this issue occuring in the case of any catalog access.
    Please follow the steps provided in the note to modify the Portal Content and remove the back link entirely.

    Dear monique,
    The catalog no longer opens in a new window from SRM 7.0 as we now use Portal as UI or NWBC, in order to maintain session reliability the catalog frame is launched from within the Shopping Cart Guided Application Framework, this SC 'session' is then placed in ACTION SUSPEND, until the return from catalog is generated where the session is triggered to reopen with a RESUME command.
    If you wish to remove the portal navigation 'back' link, I believe you already have a note for doing so, if this has not worked, re-trace all the steps in case something was missed. It should work. By adding the bypassinb/outb_handler parameters into the call structure you should then have available the Return to SRM link instead in the catalog.
    You are also correct, use of teh integrated call structure in SPRO is no longer recommended, it is relevant for older UI technology like ITS.
    Regards,
    Jason

  • Error Using Sequence in Weblogic

    I tried to use Sequence object in weblogic to generate auto-imcremental integers
    for my db insert keys. I first create a mydbsequece in oracle database. Then,
    I built a class in which I obtain a dataSource using jndi to look for my dataSource.
    And then use the ds to getConnection. After I had the connection, I do the following:
    Sequence sequence = new Sequence(con, "mydbsequence");
    int i = sequence.nextValue();
    When I call sequence.nextValue() method, I got the following error message: NullPointerException
    at Weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:65).
    Does anyone know what causes this error? and How do I fix it? Please advise me
    on this. Thank you very much.
    Qin

    Qin Ding wrote:
    >
    I tried to use Sequence object in weblogic to generate auto-imcremental integers
    for my db insert keys. I first create a mydbsequece in oracle database. Then,
    I built a class in which I obtain a dataSource using jndi to look for my dataSource.
    And then use the ds to getConnection. After I had the connection, I do the following:
    Sequence sequence = new Sequence(con, "mydbsequence");
    int i = sequence.nextValue();
    When I call sequence.nextValue() method, I got the following error message: NullPointerException
    at Weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:65).
    Does anyone know what causes this error? and How do I fix it? Please advise me
    on this. Thank you very much.
    QinSequence is a non-standard JDBC object. It is an Oracle-specific class, which presumably
    takes a standard java.sql.Connection in it's constructor. Oracle has repeatedly created
    such new classes with methods claiming to take java.sql.* arguments, but in fact they
    require an Oracle-specific class. In this case, however, we might succeed anyway if
    we dig some. Can you show me the entire stacktrace of the exception?
    Please take the attached jar file, and put it in front of all the weblogic stuff
    in the server's classpath, and repeat the problem and show me the new exception.
    From the line, I am assuming you're on the 6.1 version of WebLogic. If not, forget the
    jar, and let me know.
    Joe
    [61rmicon.jar]

  • Using sequence  in view

    hi gurus
    SQL> create view v1 as select s1.nextval from dual;
    create view v1 as select s1.nextval from dual
    *+
    ERROR at line 1:
    ORA-02287: sequence number not allowed here
    Are there only workaround?
    Thank you!

    There are some restrictions on using sequences you will want to know about
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/views.htm#sthref3092

Maybe you are looking for

  • PL/SQL Web service error

    Hi I am trying to create a PL/SQL Webservice based on an Oracle package. It fails with "An expected error was encounted. Generation aborted." The exception stack trace is pasted below. Any help is appreciated. java.io.FileNotFoundException: D:\OraBPE

  • Acrobat 9 Pro will NOT install (CS4 Design Premium)

    Acrobat 9 Pro will NOT install (CS4 Design Premium) Acrobat Pro 9 will not install (FAILED), although every other program on the CS4 DVDs did install properly. I have followed the instructions, and have tried with no programs running, not even virus

  • Automatic insertion in text box?

    Hello, Here is the problem...I have existing .indd document, and it needs to be printed into large number of pdf files. Each pdf file must have different text in one textbox (located in master frame). Is there any way i could automate the process? No

  • Problems between the GPU and the fans

    Hello ! I've got an iMac 21,5" with 3,2 GHz Intel Core i3. My GPU is an ATI Radeon HD 5670 with 512 MB of VRAM. I recently noticed that when i'm running a game and when at the same moment the fans are used around 2000rpm the performances of the GPU a

  • Hi Gurus I want to represent hierarchical information coumnwise Please guid

    Hi i have one table which consist of the skill name and other table which containns all the group name .Each group has certain skill in it .. and each group has parent group Now i want to display like as below Skill --- Group name---- higher group na