How to use a Global database link

i try to create a global database link through two databases MZFB et MZF14952.
the MZFB database is installed under the machine MZFXPDESK
the MZF14952 database is installed under another machine SUPPORT1
i execute this code
CREATE DATABASE LINK dbl_14952_5
CONNECT TO BELGA_5          
IDENTIFIED BY mypwd
USING 'MZFB'
select * from dba_db_links
OWNER      DB_LINK      USERNAME      HOST      CREATED
MZF14952     DBL_14952_5.CORP.MYCOMPANY.COM     BELGA_5          MZFB                    02/14/2007 14:17:21:000
select * from global_name
DBL_14952_1.CORP.MYCOMPANY.COM
select * from [email protected]
=> ORA-02019: connection description for remote database not found

zafadm,
as Leonardo pointed out you should refer to the db link by it's name - '@dbl_14952_5'. The USING clause expects a full address or an alias that refer's to your tnsnames.ora file on the local server (SUPPORT1) where an entry would exist with that alias. You can bypass the tnsnames.ora file by supplying the full address in your create database link statement, ie;
create database link dbl_14952_5
connect to  BELGA_5
identified by "password"
using '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=host_ip)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=MZFB)))';Update the statement with the ip of the remote (MZFXPDESK) server.

Similar Messages

  • Global database links

    I am using global database links with Oracle Names. I have about a hundred databases ranging from 7.3.4 to soon to be 9i. Will OID support global database links in my environment? Is there any documentation dealing with global database links & OID.
    Thank you for your help.
    -SB

    Hi Scott:
    Yes OID will support your all of these database connection. The best document on this subject is the Oracle Networking Admin guide for 8.1.7. Chapter 6 gives you all the informaiton on how to set this up.
    Thanks.
    Jay
    null

  • [HTML DB] How to use the existing database table?

    [HTML DB] How to use the existing database table?
    I installed Oracle 10g database in Computer A(Windows 2000), and I already create all the tables with data and the data size is about 300MB.
    In Computer B(Windows 2000), I installed HTML DB 1.6.
    How can I use /get the existing database table (in computer A) for HTML DB?
    Could anyone help me on this? I am newbie and I need some detail instructions. or Where can I find the examples.....
    Thanks

    Well I guess if you wish to retain that architecture, i.e. HTMLDB on one machine and your data on another, you will have to establish database links to access the data. Oracle documentation will describe how to achieve that.

  • How do you create a database link in Forms9i

    I am writting and application that is to connect to multiple databases and do given task, but the triggers I assign to items only work in the database that you connect to for forms to run.
    How do you create a database link in Forms9i?
    Thank you in advance for your reply.
    Travis

    It seems like you will have to have database links set up in all your databases to point to all other remote databases and have a common global naming scheme for all your objects so that no matter what database you log into you will have access to all objects in the universe.

  • How do you close a database link in Apex?

    How do you close a database link in Apex that is referenced in an interactive report on Page 1? I want to make sure the database link is closed before a user navigates to another page in the Apex application.
    Lets assume the database link is referenced in the region source for Page 1 as follows:
    Page 1 - Employee Listing
    Region Source:
    select ename, job, hiredate
    from scott.emp@link1
    Any suggestions are appreciated.
    Ms. H

    John,
    I figured out how to eliminate the ORA-02020 and ORA-02081 errors. The solution is reference below:
    1. Create an interactive report in a page.
    2. Add the SQL statement in the region source as listed below:
    SELECT ENAME, JOB, HIREDATE
    FROM SCOTT.EMP@DBLINK
    WHERE (UPPER(ENAME) LIKE '%' || UPPER(:P1_TEXT_SEARCH)||'%')
    Conditional Display
         Condition Type:
    PL/SQL Expression
         Expression 1
         :P1_TEXT_SEARCH IS NOT NULL
    3. Add a search button and text search field as items on the page.
    4. Create a process in the page to check the cursor and catch an exception as listed below:
         Name: CHECK_CURSOR
         Sequence: 30
         Point: On Submit - After Computations and Validations
         Type: PL/SQL Anonymous Block
         PL/SQL Process:
         FOR C1 IN (SELECT ENAME, JOB, HIREDATE
         FROM SCOTT.EMP@DBLINK
    WHERE (UPPER(ENAME) LIKE '%' || UPPER(:P1_TEXT_SEARCH)||'%'))
         LOOP
         IF C1.ENAME IS NOT NULL
              THEN
              HTP.P('Employee Name: '||C1.ENAME||' ');
              END IF;
         END LOOP;
         EXCEPTION
              WHEN NO_DATA_FOUND
              THEN
              APEX_APPLICATION.G_PRINT_SUCCESS_MESSAGE := 'No Data Found Error';
              WHEN OTHERS THEN
              APEX_APPLICATION.G_PRINT_SUCCESS_MESSAGE := 'Unexpected Error';
    Conditional Processing
    When Button Pressed (Process After Submit When This Button is Pressed)
         P1_SEARCH_DATA
    5. Create a process in the page to close the database link as listed below:
         Name: CLOSE_DBLINK
         Sequence: 40
         Point: On Submit - After Computations and Validations
         Type: PL/SQL Anonymous Block
         PL/SQL Process:
         COMMIT;
         EXECUTE IMMEDIATE 'ALTER SESSION CLOSE DATABASE LINK DBLINK';
    Conditional Processing
    When Button Pressed (Process After Submit When This Button is Pressed)
         P1_SEARCH_DATA
    6. Apply changes, run the page, and conduct a test.
    I hope this solution is helpful to others.
    Ms. H

  • How to use the default database service name on creating procedure for data

    how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
    Db name is = prod.
    exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
    says already the service available.
    CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
    VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
    IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
    END IF;
    END;
    says trigger created, but during a swithover still the service is listeneing on listener.
    tns entry.
    prod =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (LOAD_BALANCE = YES)
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
    (CONNECT_DATA =
    (SERVICE_NAME = prod)
    thanks in advance.
    Edited by: 854393 on Dec 29, 2012 11:52 AM

    Hello;
    So in the example below replace "ernie" with the alias you want the client to use.
    I can show you how I do it :
    First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
    ernie =
    (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
           (ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
           (CONNECT_DATA =
           (SERVICE_NAME = ernie)
    )Next the service 'ernie' needs to be created manually on the primary database.
    BEGIN
       DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
    END;
    /After creating the service needs to be manually started.
    BEGIN
       DBMS_SERVICE.START_SERVICE('ernie');
    END;
    /Several of the default parameters can now be set for 'ernie'.
    BEGIN
       DBMS_SERVICE.MODIFY_SERVICE
       ('ernie',
       FAILOVER_METHOD => 'BASIC',
       FAILOVER_TYPE => 'SELECT',
       FAILOVER_RETRIES => 200,
       FAILOVER_DELAY => 1);
    END;
    /Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('ernie');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('ernie');
    END IF;
    END;
    /lsnrctl status - should show the new service.
    When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
    So in my example the default just hangs out in the background.
    Best Regards
    mseberg
    Edited by: mseberg on Dec 29, 2012 3:51 PM

  • How can you SELECT via Database Link CLOB data using Application Express?

    Customer Issue:
    Developer using Oracle's Application Express 3.1. The Developer is trying to SELECT a CLOB datatype column from a remote (10.2.0.3) database, via a database link on her 10.2.0.4 based client Application. The Developer wants to be able to select CLOB data from the remote database which has limitation that she can't make any changes to the remote database.
    Developer's Comments:
    I do a select and get the error. Getting error ORA-22992: cannot use LOB locators selected from remote tables. So she feels she can't use dbms_lob.substr in this configuration I can do a "select into" but that is for one value. I am trying to run a select statement for a report that brings back more than one row. I do not have permission to change anything on the remote database. I want to access the remote database and multiple tables.
    This is not something I work with, would greatly appreciate help or ideas. Is this a limitation of the 3.1; or does she just not have this set up correctly; or should she be using a Collection (if yes, please share example)
    Thanks very much,
    Pam
    Edited by: pmoutrie on Jun 4, 2009 12:01 PM
    Hello???
    Would really appreciate an answer.
    Thanks,
    Pam

    This may not be a perfect solution for you but it worked for my situation.
    I wanted to grab some data from Grid Control's MGMT$JOB_STEP_HISTORY table but I couldnt' create an Interactive Report due to the existance of a CLOB column. I cheated this by creating a view on the GC DB, grabbing the first 4000 characters and turning it into a varchar2 column:
    create view test_job_step_history as
    select job_Name, target_name, status, start_time, end_time, to_char(substr(output,1,4000)) output
    from MGMT$JOB_STEP_HISTORY where trunc(end_time) > trunc(sysdate)-90
    In an APEX Interactive Report:
    select * from test_job_step_history@GCDB
    Granted, the output looks aweful right now but I am only looking for a very particular output (failed, denied, ORA-, RMAN-, etc) so the formatting isn't the most important thing to me right now.
    If anyone can improve -- and I'm sure you can -- on this I'd love to hear about it.
    Thanks,
    Rich

  • How to use your Global ready phone in Mexico.

    PREVIEW
    Traveling Abroad in Mexico with a Verizon Phone
    How to Use a Verizon Global Ready Phone Abroad
     So your planning a trip to Cancun Mexico and want internet/cell service with out paying Roaming fees to your U.S service provider here is what you need to know to have access to Facebook, Vonage, Google maps, email and other apps while abroad.
    I will cover two bases one for your Global ready/Unlocked phone and the other for a personal Hotspot in your room or wherever your laptop will be this is only If you plain to purchase or have semi-free WiFi service from the Hotel.First I will cover your smartphone:
    The phone I used and test this with was mostly on my Razr Maxx from Motorola from the Verizon network. This can also worked with a Iphone 4S (You need to call Verizon First before traveling) please check out this thread to use your iPhone Unlocking Iphone for International Travel
    Note: you only have to do this once per-iPhone after that it is global ready as long as you own it.
    For a Android phone they are Global ready phones no need to call Verizon it is already ready. Popular Android phones that are Global ready ie. Razr, Razr Maxx,plus both HD versions also, The Samsung GS3 and GS4 are Global ready.
    For those who don't know, All Verizon 4G phones carry a sim card inside. They can be replace with a non-U.S carrier sim.(Make sure you insert the sim in the right way or it will not work.) If you try to use a none Verizon sim in the U.S it will be blocked by The Verizon network.
    Verizon runs off of both GSM and Cdma networks but while aboard you have a option to change these features.
    By pressing the menu button click System Setting> More / Wireless & Networks>Mobile Networks>Network Mode.
    Step 1.
    Most important leave your phone in airplane mode once you reach your destination you can still use WiFi while your phone is in this mode. While in Mexico or any country aboard you will need a local sim from any carrier that is GSM. A prepaid sim works great, some/most company's will make you pay a fee for the sim and they will not provide any help with setting your phone up to there services.
    Here are a two reasons why. #1 You did not buy it from them. #2 They really don't know your Verizon, AT&T and T-mobile phone setup, Yes it is different then the same phones they sell on their own network. So buying a prepaid sim card is your best option then paying roaming fees to your U.S carrier.
    After you have you sim you purchase the Data amount you think you will need you I got 1GB which was way more then enough for 5 days. I was consistently using my phone checking in on Foursquare etc.. you will also receive a local phone number too. I used a telcel sim card In Cancun The Telcel company is located in the Hotel Zone # 2 Blvd Kukulcan Km 12.5 77500 Cancún, Quintana Roo, Mexico.
    Telcel is the best for 4g and internet service.
    Mexico cellphone company's
    http://www.telcel.com/portal/home.doTelcel: Excellent coverage, You'll have to present your passport. It took no time set up the data service. (You need to know their APN settings for data service I will cover this below. I used The Vonage app to Talk to friends and family in the U.S for free they were able to call and text me while using the Vonage app on their smart phone and toll free numbers work with Vonage but not with the Mexico number.(I will cover how to set up Vonage before your travel below). There are other cheaper company's but none with the same coverage as Telcel. It worked everywhere compared to the company below.
    http://www.movistar.com.mx/Movistar: The underdog. Cheaper per-month. It is what The other phone used.I wanted to test both networks. The rate to call the USA from Mexico was only 2 pesos per minute (15 cents) but there are other options to call the U.S for free as stated above. Coverage is not great at all, but it wasn't to terrible either. It was really spotty while on the beach unlike Telcel. Traveling out of Cancun on a excursions there was next to none cellular service at all. A lot of the small towns didn't have Movistar coverage. You will end up roaming on a different network it will roam on the Telcel network instead yeah that's right I said Telcel.
    Prices
    Everyone wants to use their Android phone or iPhone for checking emails, translating Spanish and occasionally consulting Google Maps while lost. It is easy to setup data on your phone once you have a SIM card and money on the account. If you don't explicitly buy data you can still use data on your device, but it will be taken out of your account balance at a very expensive rate. The best thing to do is to sign up for a package deal. Movistar is $200 pesos ($15) for 1GB which expires in 1 month. If your stay is not long Telcel offers the same 1GB data service for 10 days.
    To sign up for one of these packages after you have added money to your Movistar account you send a text message to a special number and money is automatically taken from your account balance to pay for your data package. For example, to sign up for 1GB over 30 days, a $200 peso plan, you send a text message to 100 that says "30 dias". $200 pesos will be removed from your Movistar account and you'll have a gig of data to use.
    Telcel works in a different way but you don't not need to text any special number( if your purchase from their main Store) after you add money to your account. it is automatically applied only when you use any OXXO convenience store to refill your mobile service then you will need to text a special number which will be provided . I prefer going to Telcel company just in case of a language barrier.
    Note: That all Telcel prepaid plans are currently referred to as "Amigo". Click Here for Telcel Rate Rates are in pesos not dollars
    Your sim card good and can be reused up too 1 year after money runs out or time expires.
    Current Exchange rate $1 USD = 13.2408 pesos.
    Step 2
    Lets get your internet service running :
    After you have your sim and paid for data you need add the APN setting to your phone. I did have to add the APN to my Razr Maxx for 4G/3G coverage, As Same for the iPhone 4S to acquire the 3G data service. Insert your Telcel sim go to the one of the link below, click your phone software link. its free no need to pay a company which will take you minutes to do. If your phone is running any Android you click the android manual setup for Iphone the Iphone manual setup. Here is Telcel APN setting for Cancun, Mexico . Here is Movistar APN settings
    Note: If you have a fully unlocked smartphone that is not locked to any specific carrier in the United States, Canada or any other country you may not have to enter the APN setting manually.
    How to Call and Text to the U.S and Receive Calls and Text from the U.S while abroad at no Charge.
    I have used Vonage for a while to me its the best. I have used on trips to Europe and it has always work without any problems.
    When setting up Vonage you must do it before your trip abroad because it will asked for your current U.S number for authorization and activation this number will not change once you use a foreign sim since your account is linked to your U.S number not your carrier.
    You can add money to your Vonage account if you are planing on calling land lines or a smartphone with out the Vonage app attached to that smartphone number. (I notice a few times I used Vonage from Mexico to call a mobile phone that did not have Vonage, I was able to call them for free, which was a bonus). You can Call, send SMS and MMS threw Vonage at no additional charge to any smartphone with the Vonage app.
    There are other apps out there that do work the same way as Vonage. Viber, Call and Text any Viber user for free. Whatsapp a texting app only no calling is available (yet).
    These apps will use the data service you have purchase while abroad or if you have WiFi enable on your phone if WiFi is available they will use the WiFi Data instead of Cellular Data. Almost every Hotel in Cancun makes you pay for WiFi. If you are at a hotel that offers free WiFi you are in luck but the service may be spotty in some areas in your hotel.
    Note to reader: The Hotspot for Verizon Wireless did not work it will look for Verizon servers. I will update this article when I find a Hotspot for Telcel. I also know The Foxfi app did not work either even the paid version.
    Thanks for reading !!
    Enjoy your trip.

    How to turn your computer into a Virtual (Personal)Router.
    Our hotel the Grand Oasis Cancun provided internet for only 36 hours and you could only use it on one device which comes to my next option as using your Laptop as a Personal Router to broadcast WiFi to any devices near your computer. Our room was on the Second level of the Pyramid at Grand Oasis and I was able to access it while at the VIP lounge below our room. Before our supposedly free internet service ended.
    I attempted using the hotel next door since I was getting a good signal from the Omni Hotel. They offered complimentary 24hr internet access using your browser as a way to track your use. Once you find the signal of the Omni it will open your browser I used Google Chrome, after it opens you go threw a few simple steps and your ready.
    I learned that after the 24 hours are up all you have to do is disconnect from their network, just run Ccleaner(free program) then find the Signal of the hotel and you will be given another 24 hours. What Ccleaner(<--download there) does is clears anything attached to your browser ie cookies temp files etc. it cleans your browser history giving you a way of not paying for the hotel fee of internet and giving you free WiFi. this is only if you are next to the Omni hotel :).
    What you need to download to turn your computer into a hotspot need to say is this little easy to use program Virtual Router. Once it has download test at your home to make sure it works with you devices. This will work with Tablets, Phones and other computers that cant find the Omni WiFi signal. Your welcome. To use it, is simple. Open program>make a password>select WiFi and start VR.

  • How to use a global variable for reading a query resultset in JDBC lookup?

    Hi Friends,
    Using JDBC lookup, I am trying to read from a table Emp1 using a user defined function. In PI 7.0, this function returns values of a single column only even if you fire a " Select * " query. I am planning to use a global variable(array) that stores individual column values of the records returned by a "select *" query. Need pointers on as to how a global variable can be declared and used to acheive the above scenario. Kindly explain with an example. Any help would be appreciated.
    Thanks,
    Amit.

    Hi Amit,
    Sounds like a good idea but then you would need an external db and update the table in a thread safe way !.
    Regarding your question as to how to work with global variable please refer https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1352. [original link is broken] [original link is broken] [original link is broken]
    Rgds
    joel

  • How to recover password from Database link in Oracle 10G

    Hi guys,
    How can I get a user password from DBLink in Oracle 10G?
    From sys.link$ the column "PASSWORD" is empty and the crypted data comming from the new column "PASSWORDX" does not work by using "... identified by values..."
    Any idea?
    Thanks...

    Why do you need to know the password? If you need to re-create the link in another database you can use dbms_metadata to generate the DDL for the database link and for a fixed database link the DDL will include an encrypted password that will match the remote database password.
    select dbms_metadata.get_ddl('DB_LINK','Link_name','Owner') from sys.dual
    On version 9.2 it extracts the actual visible plan text password. On 10g+ encrypted representation in values clause
    HTH -- Mark D Powell --

  • How to refresh a created database link?

    I have created a database link with the command:
    CREATE DATABASE LINK mydb.net CONN TO STRMADM IDENTIFIED BY strmadm_pw USING 'mydb.net'
    and then i changed strmadm_pw at the remote database, which may cause the database link inactive. but how to activiate the link again?

    The best thing is always to try it :
    SQL> show user
    USER is "SCOTT"
    SQL> create database link test connect to test identified by test using 'orcl';
    Database link created.
    SQL> create synonym test_tab for test_tab@test;
    Synonym created.
    SQL> select count(*) from test_tab;
      COUNT(*)
             1
    SQL> create or replace function test_func return number is
      2     counter number;
      3  begin
      4     select count(*) into counter from test_tab@test;
      5     return counter;
      6* end;
    SQL> /
    Function created.
    SQL> select test_func from dual;
    TEST_FUNC
             1
    SQL> conn / as sysdba
    Connected.
    SQL> alter user test identified by test1;
    User altered.
    SQL> conn scott/tiger
    Connected.
    SQL> select count(*) from test_tab;
    select count(*) from test_tab
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from TEST
    SQL> select test_func from dual;
    select test_func from dual
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from TEST
    ORA-06512: at "SCOTT.TEST_FUNC", line 4
    SQL> drop database link test;
    Database link dropped.
    SQL> create database link test connect to test identified by test1 using 'orcl';
    Database link created.
    SQL> select count(*) from test_tab;
      COUNT(*)
             1
    SQL> select test_func from dual;
    TEST_FUNC
             1
    SQL>                                                                                                                                                                                                                

  • How can I know a database link target DB is dead?

    Hi,
    I have a question about using database link.
    If I create a public database link linkB from DB A to DB B. Then the DB B's storage fail and DB B is dead.
    When I use select * from tableB@linkB in one package with exception handler, it just hang and didn't jump to exception. How can I set a timeout value (like 15 secs) to this database link ??? or is there any method to detect the database link if alive then run the sql statement????
    Anyone knows??? thanks!!
    Regards,
    Miki.

    Thanks to NKU's answer.
    But, the inbond_connect_timeout seems to set in DB server, for a client to connect with the database server and provide the necessary authentication information.
    In my case, I don't know the target DB B is dead and my AP hang because it execute a query through DB link from DB A to DB B.
    If I can set a timeout value to DB link (create in DB A) or something else, I can have exception handler to process it not just wait a long time period. ^_^
    Best Regards,
    Miki.

  • How to use a Logical Database in Function Module.

    Hi Experts,
    I want to use a logical database in a Function Module to fetch data from a standard SAP table into a Internal table for certain filter conditions.
    How can I get get this done????
    I called LDB_PROCESS FM in my FM, but I could not figure out how to store the extract in my IT table since we cant use GET in FM.
    Please provide me a sample code if possible.
    Thanks in Advance,
    Alex.

    Hi,
    i had an example program like this ,in this i want to get the data using pnp logical database with 5 fields in an interface program.
    data: begin of it_final occurs 0,
            pernr like pa0002-pernr,
            vorna like pa0002-vorna,
            nachn like pa0002-nachn,
           usrid like pa0105-usrid,
           usrid_long like pa0105-usrid_long,
           end of it_final.
    get pernr.
      clear : p0000,p0002,p0105.
      rp-provide-from-last p0000 space p_date p_date.
      if p0000-stat2 = '3'.
        v_pernr = pnppernr-low.
      else.
        reject.
      endif.
    *---Get employee pernr, First name ,Last name into final table
      rp-provide-from-last p0002 space p_date p_date.
      if pnp-sw-found = '1'.
       it_final-pernr = p0002-pernr.
       it_final-vorna = p0002-vorna.
       it_final-nachn = p0002-nachn.
      else.
    *---Error message if not infotype 0002 maintained
      T_ERROR-PERNR   = pnppernr-low.
      CONCATENATE TEXT-EMI '0002'
      INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
      APPEND T_ERROR.
      CLEAR T_ERROR.
      endif.
    **--Get SYSTEM USERNAME to final table
      rp-provide-from-last p0105 0001 p_date p_date.
      if pnp-sw-found = '1'.
        it_final-usrid = p0105-usrid.
      else.
    *---Error message if not SYSTEM USERNAME maintained
        T_ERROR-PERNR   = pnppernr-low.
        CONCATENATE TEXT-003 '0105'
        INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
        APPEND T_ERROR.
        CLEAR T_ERROR.
      endif.
    **--Get Email ID to final table
      rp-provide-from-last p0105 0010 p_date p_date.
      if pnp-sw-found = '1'.
        it_final-usrid_long = p0105-usrid_long.
      else.
    *---Error message if not Email ID maintained
        T_ERROR-PERNR   = pnppernr-low.
        CONCATENATE TEXT-004 '0105'
        INTO T_ERROR-MESSAGE SEPARATED BY SPACE.
        APPEND T_ERROR.
        CLEAR T_ERROR.
      endif.
       append it_final.
        clear it_final.
    reward points if useful,
    venkat.

  • How to use your own database with your users to authenticate in a Web app?

    Hello, everybody!
    I'm starting to write my first web application and I'm going to use JSF, JPA and EJB3 in this application. One of the first things that I have to do on it is the authentication part where I'll have a page with a user name and a password for the user to login. So, as I'm new to all this in Java (I've already implemented this on .NET in the past), I was studying the Java EE 5 Tutorial, especifically the section "Example: Using Form-Based Authentication with a JSP Page". But I saw that the users that the sample application uses come from the file realm on the Application Server. The users are created there and assigned a name, a password and a group. After the users are in the Application Server we can simply uses forms authentication declaratively in the deployment descriptor (web.xml).
    But the problem is that this doesn't work to me as I already have my own database with my users, so I want to use it instead of having to create the users on the Application Server.
    So, I'm asking you how to do that. Of course I'm not expecting that you place the code here to me as I know that such a thing could be complicated. Instead, I'm asking if you know about some tutorial, article, book or something that teaches how to do what I want. But I would like to see theses examples using JSF and/or EJB3 because these are the technologies that I'm using to develop. It's a pity that the Java EE 5 Tutorial doesn't have an example using a custom database as I know that this situation is very common in the majority of web sites.
    Thank you very much.
    Marcos

    From memory, it goes like this... You just create a
    raw jdbc connection on your user database using a
    special "login" DB user account, which has
    permissions only to an "authenticate" stored query,
    which accepts two arguments: username & password, and
    returns a boolean 0 or 1 rows found.When I implemented this in .NET's ASP.NET I had the same solution. I had an special user created in the database that I used to log in. When the real user entered his username and password I was already logged in and I had just to check his username and password agains the right table in my database.
    But that was only possible bacause when I connected to the database using my hidden user, I used the rights APIs in ASP.NET that coordinate the authentication process. This means that before login in, no one could access any resources (pages, atc...). So what I'm saying is that I can't manager this manually in Java. Java has to have some API or whatever to allow me to control the login process programmatically, while letting the Application Server control the access to the resources.

  • 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

Maybe you are looking for