Access the OS from Oracle

Hi,
How do I execute commands on the operating system from the SQL?
(run a .sql script or get env variable)
Cheers,
Amos
null

I have code for doing this in Solaris. Basically you write a java function. Pass the command to Java and then let java execute the system command. I have code and instructions. I have used this on Solaris but have not tried it on anything else but it should work. Send me an email if you want the code.

Similar Messages

  • How to make Firefox access the internet from Oracle Ent. Unbreakable Linux?

    Hello
    I have a Dell Duo Core x86 laptop that multiboots Windows 2003 Server, Windows XP and Oracle Enterprise Unbreakable Linux. I use Internet Explorer to
    access my email while at the library so I know my laptop can access the internet. I just installed the Oracle Enterprise Unbreakable Linux in text mode and
    I can still access the Internet but only if I use one of the Windows operating systems which is why I am keeping them for now. The reason is because when I
    use Oracle Enterprise Unbreakable Linux, when I select Firefox to access the internet I get these messages:
    "Server not found
    Firefox can't find server at www.hotmail.com
    -check address for typing errors
    -if unable to load pages check network connection
    -if computer or network protected by firewall make sure Firefox permitted to access
    web"
    None of those reasons are true for not gaining access to the internet. I want to use Oracle Enterprise Unbreakable Linux from now which is why I installed
    but I need to know:
    1) Why do I get the "Server not found" and the other error messages when I try to access the internet using Firefox and what do I have to do to make Firefox
    access the internet successfully?

    Hi,
    First you must confirm your laptop with Oracle Enterprise Unbreakable Linux can access internet.
    Please open a terminal, input the following command
    1.ifconfig
    2.cat /etc/resolv.conf
    Regards
    Jason

  • How to copy the Data From Oracle Table To SAP Table

    Hi Friends,
    We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
    I appreciate any suggestions regarding this.
    Regards
    CSM Reddy

    Hi,
    since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
    To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
    Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement. 
    Regards
             Frank

  • Access remote MonetDB from Oracle using ODBC

    Hello,
    I really need your help, I have been trying for more that one week to figure out what is the problem without success
    Here is the details of my problem:
    I have oracle  11g installed on machine1 (ubuntu 64bit) , and I have MonetDB installed on machine2 (ubuntu 64bit, ip= 192.168.56.101)
    I need to access MonetDB database from oracle.
    I followed the configurations steps but I get always the following error:
    select "id" from "test"@monetdb;
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [unixODBC][MonetDB][ODBC Driver 11.11.11]Client unable to establish connection
    {08001}
    ORA-02063: preceding 2 lines from MONETDB
    I installed unixODBC on the machine1 and I used MonetDB ODBC driver which generates the following odbc.ini file
    [monetdb]
    Description = MonetDB
    Driver = /usr/lib64/libMonetODBC.so
    Host = 192.168.56.101
    Port = 50000
    Database = demo
    User = monetdb
    Password = monetdb
    Debug =
    Here are my configurations:
    tnsnames.ora:
    monetdb =
       (DESCRIPTION =
          (ADDRESS =
             (PROTOCOL = TCP)
             (HOST =localhost)
             (PORT =1521)
          (CONNECT_DATA =
             (SID=monetdb))
          (HS = OK))
    Listner.ora
    SID_LIST_LISTENER=
       (SID_LIST=
          (SID_DESC=
             (SID_NAME=monetdb)
             (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
             (PROGRAM=dg4odbc)
             (ENVS=LD_LIBRARY_PATH=/usr/lib64:$ORACLE_HOME/lib)
    In $ORACLE_HOME/hs/admin I created the file initmonetdb.ora
    HS_FDS_CONNECT_INFO=monetdb
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_FDS_SHAREABLE_NAME=/usr/lib64/libodbc.so
    HS_LANGUAGE=american_america.we8iso8859p1
    set ODBCINI=/etc/odbc.ini
    when I do lsnrctl start i get the following
    Log messages written to /u01/app/oracle/diag/tnslsnr/OracleUbuntu/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                26-OCT-2013 01:32:37
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/OracleUbuntu/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "monetdb" has 1 instance(s).
      Instance "monetdb", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    any ideas why I get this error??
    Regards
    Baraa

    Hi,
    Firstly, try to configure your gateway listener on another port than 1521 as it is the default one for database. Don't forget to change also the port in TNSNAMES.ORA.
    Then use the host machine or ip address rather than the local host in the LISTENER.ORA and TNSNAMES.ORA.
    Avoid to use  $ORACLE_HOME in the ENVS from LISTENER.ORA but use a complete PATH.
    Then test your ODBC connection outside Oracle. What is the result?
    Try to get result of the following commands on the Oracle machine1 :
    $cd /usr/bin
    $./odbcinst -q -d
    $./odbcints -q -s
    Change parameter in gateway init file:
    HS_FDS_TRACE_LEVEL=DEBUG
    Execute your SELECT statement:
    select "id" from "test"@monetdb;
    Get the gateway trace file in /u01/app/oracle/product/11.2.0/dbhome_1/hs/log and send us
    Thanks
    Regards,
    Mireille MEGE

  • Accessing Discoverer Reports from Oracle Apps

    Hi all,
    Requirement: Accessing Discoverer Reports from Oracle Apps
    Discoverer: 11g
    Oracle Apps: 12i
    When I am trying to access the Discoverer Reports from Oracle apps, again it is asking for Oracle Apps Login details. Can we have any other option that can directly connect to the viewer without any intermission. Please its urgent requirement.
    ThanQ,
    ABR

    Hi Arun,
    When I am trying to access the Discoverer Reports from Oracle apps, again it is asking for Oracle Apps Login details. Can we have any other option that can directly connect to the viewer without any intermission. Please its urgent requirement.Pl refer section *6.4. Set Applications profile options in Oracle E-Business Suite* from MOS tech note
    *Using Discoverer 11.1.1 with Oracle E-Business Suite Release 12 [ID 1074326.1]* and make sure that all profile options are set to a valid value.
    thanks,
    X A H E E R

  • Pull the data from ORACLE

    Hi Guru's,
    I would like to know ,How to pull the Data from Oracle tables to BW.
    tell me scratch onwards...
    regards
    sekhar ch

    Hi...
    In the admin workbench open the modeling tab and select Source Systems
    In the right pane, right-click on Source Systems and select Create…
    A dialog requires you to define the type of source system. Select “Database System”
    Enter a description for the source system
    Once you accept the definition of the source system, you have to provide the following information, save and back out:
    DBMS: ORA (Oracle)
    User Name: Your UID
    DB password: Your pwd
    Conn. Info: sql*net string
    Select “Permanent connection” if this is the case
    If everything went well, you should see the new source system. When you do a right-click and ask for the DataSource overview, the first time you execute it you will be prompted to generate the application hierarchy
    In order to test connectivity, right-click on the source system and select “Select Database Tables”
    The following screen shows up. Click on the execute button…
    any tables or views that you have access through your UID
    Select a table or view and click on “Edit DataSource”
    To test data retrieval, click on “Display table contents”
    Designate the application component, determine the type of DataSource (Text, Master data, or Transaction data) then generate the DataSource
    with regards,
    hari

  • Accessing ContentDB Webclient from Oracle Portal

    Hi All,
    Is there a way to access ContentDB webclient from oracle portal application.We are new to oracle portals. Please let us know if anyone has idea about how to proceed on developing it to access ContentDB webclient.
    Thanks,

    I could be completely wrong here, but I believe you may be able to write a PDK portlet that uses the Content DB API.
    The path we are taking is using Webcenter with a JSF bridge and the Content DB (CDB) API. In JDeveloper, we have multiple samples of the ADF/JSF-CDB API functioning. We then moved on and have JHeadstart producing the ADF/JSF; which in turn uses the CDB API. We are currently testing deployment.
    Our next step will be to link it with Webcenter and we will have should then have our portlet.
    Hope that helps.
    Steve

  • Unable to access the data from Data Management Gateway: Query timeout expired

    Hi,
    Since 2-3 days the data refresh is failing on our PowerBI site. I checked below:
    1. The gateway is in running status.
    2. Data source is also in ready status and test connection worked fine too.
    3. Below is the error in System Health -
    Failed to refresh the data source. An internal service error has occurred. Retry the operation at a later time. If the problem persists, contact Microsoft support for further assistance.        
    Error code: 4025
    4. Below is the error in Event Viewer.
    Unable to access the data from Data Management Gateway: Query timeout expired. Please check 1) whether the data source is available 2) whether the gateway on-premises service is running using Windows Event Logs.
    5. This is the correlational id for latest refresh failure
    is
    f9030dd8-af4c-4225-8674-50ce85a770d0
    6.
    Refresh History error is –
    Errors in the high-level relational engine. The following exception occurred while the managed IDataReader interface was being used: The operation has timed out. Errors in the high-level relational engine. The following exception occurred while the
    managed IDataReader interface was being used: Query timeout expired. 
    Any idea what could have went wrong suddenly, everything was working fine from last 1 month.
    Thanks,
    Richa

    Never mind, figured out there was a lock on SQL table which caused all the problems. Once I released the lock it PowerPivot refresh started working fine.
    Thanks.

  • Print directly to the printer from Oracle 9I

    Please it is possible to print directly to the printer from Oracle 9i without having to show the report on the web.

    Please it is possible to print directly to the printer from Oracle 9i without having to show the report on the web.

  • How can i access the EJB from a Webdynpro

    Dear all,
    How can i access the ejb , from a webdynpro?.
    Is there any way to do that?.
    I want to write the entire code (business functions) within the EJB and i wan to access the entire methods from a WebDynpro Application.This is the situation.
    Please help me to , resolve this problem.(Here im using JDBC Connection .. etc.).
    I want to do the basic connection setting's and data retrieval part within the EJB and use that within the WebDynpro..
    how can i seperate this two(i mean, i want to seperate the JDBC connections and WebDynpro,i dont want to hard code any connection parameters within the webdynpro code)
    So that i want use that saet of particular function's in many webdynpro applications..
    (i dont need any help regarding webservice way.)
    If anyone can , please help me..
    I tried that javabean class , manifest file , that way (importing javabean model).
    but im getting errors.
    I cant properly utilize that..
    So please help me with steps regarding that,,
    for javabean
    and if any , for EJB also..
    with regards
    Kishor.G

    HI,
    Since webdynpros follows Model View Controller Architecture You can access EJBs in webdynpro(views/frontend) infact to connec to database uding JDBC you have to utilise EJB ( opening connection to database closing, and other Business functionality).See this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/web dynpro tutorial and sample applications.faq#q-7
    <b>How to access the Car Rental Web Service?</b>
    Regards,
    RK

  • Error, while pushing the data from Oracle to MSSQL.

    Hi,
    I am facing the below error, while pushing the data from Oracle to MSSQL.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for MSSQL][Microsoft][ODBC SQL Server Driver][SQL Server]Update or insert of view or function 'View_Name' failed because it contains a derived or constant field.[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (SQL State: 00000; SQL Code: 8180)
    Please suggest me, how to overcome from this.
    Thanks.

    [email protected] wrote:
    Hi,
    I am facing the below error, while pushing the data from Oracle to MSSQL.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Transparent gateway for MSSQL][Microsoft][ODBC SQL Server Driver][SQL Server]Update or insert of view or function 'View_Name' failed because it contains a derived or constant field.[Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (SQL State: 00000; SQL Code: 8180)
    Please suggest me, how to overcome from this.
    Thanks.This is an error from SQL Server being passed back to Oracle so you can see the problem.
    What it is saying is that you are trying to insert (or update) data to a database view and that view contains a column that is either a constant (literal) value or is derived (a calculation, formula or string concatenation etc.).
    As such, you can't insert or update data on that column because it has nowhere to go on the database table(s) that underly the view.

  • Accessing the ServletContext from a class that is not a Servlet?

    Is there any way of accessing the ServletContext from a class that is not a
              Servlet? The class is being used as part of a Web Application.
              Thanks.
              

    http://www.mozilla.org/mirrors.html
    Mozilla has download mirrors around the globe. If it is on the list, it is trustworthy.

  • Why can't I access the Store from my iTunes

    Why can't I access the Store from my iTunes on my PC?

    You must've blocked cookies. iTunes requires cookies I believe. If you did block it follow these steps:
    Go to settings > safari > block cookies > never.

  • Upgrading the database from Oracle 8.0.6 to Oracle 9.2.0

    Dear SDN,
    We are in the process of upgrading SAP 4.6b to 4.7 R/3 Enterprise.
    Source Release:Windows 2000/Oracle 8.0.6/SAP 4.6b
    Target Release:Windows 2000/Oracle 9.2.0/SAP R/3 4.7
    Can anyone help us in explaining the procedure for upgrading the database from Oracle 8.0.6 to Oracle 9.2.0.
    Thanks n Regards ,
    Anantha Raman E.

    Thanks Mr.Mohan
        We tried to upgrade from 8.0.6 to 8.1.7 with the help of Inst Guides from service market place..the thing is we created another oracle home with new DBSID ither than the old DBSID...when we started the migration using 8.1.7 Data migration tool its not responding after the first phase CHECKING THE OLD DATABASE...
    Pls help us in this regard
    Whether we have to migrate or what...

  • UNABLE TO ACCESS THE INTERNET FROM LOCAL PROVIDER ON A SITE-TO-SITE VPN CONNECTION

    Dear All,
    I have a site-to-site connection  from point A to point B. From point B i am unable to access the internet from local internet provider.
    I am trying to ping from 192.168.20.1 the dns 8.8.8.8   but i receive the  message "destination net unreachable".
    When i run "show ip nat translation" i receive nothing.
    The vpn connection is working properly, i can ping the other side 192.168.10/24
    Below is the configuration of the cisco router on point B.
    dot11 syslog
    ip source-route
    no ip dhcp use vrf connected
    ip dhcp excluded-address 192.168.21.254
    ip dhcp pool voice
     network 192.168.21.0 255.255.255.0
     default-router 192.168.21.254 
     option 150 ip 192.168.5.10 
    ip cef
    ip domain name neocleous.ru
    ip inspect name IOS_FIREWALL tcp
    ip inspect name IOS_FIREWALL udp
    ip inspect name IOS_FIREWALL icmp
    ip inspect name IOS_FIREWALL h323
    ip inspect name IOS_FIREWALL http
    ip inspect name IOS_FIREWALL https
    ip inspect name IOS_FIREWALL skinny
    ip inspect name IOS_FIREWALL sip
    no ipv6 cef
    multilink bundle-name authenticated
    vty-async
    isdn switch-type primary-net5
    redundancy
    crypto isakmp policy 5
     hash md5
     authentication pre-share
     group 2
    crypto isakmp policy 10
     encr aes
     authentication pre-share
     group 2
     lifetime 28800
    crypto isakmp policy 50
     encr 3des
     hash md5
     authentication pre-share
     group 2
    crypto isakmp key Pb85heuvMde9Wdac5Qohha7lziIf142u address [ip address]
    crypto isakmp invalid-spi-recovery
    crypto isakmp keepalive 10
    crypto ipsec transform-set TRANSET esp-aes esp-sha-hmac 
    crypto ipsec transform-set TRANSET2 esp-des esp-md5-hmac 
    crypto ipsec df-bit clear
    crypto map CryptoMAP1 ipsec-isakmp 
     set peer [ip address]
     set transform-set TRANSET 
     match address CryptoACL
    interface FastEthernet0/0
     description Primary Provider
     ip address [PUBLIC IP MAIN PROVIDER] 255.255.255.252
     ip access-group outside_acl in
     ip mtu 1390
     ip nat outside
     ip virtual-reassembly in
     load-interval 30
     duplex auto
     speed auto
     crypto map CryptoCY
     crypto ipsec df-bit clear
    interface FastEthernet0/1
     description TO LAN
     no ip address
     load-interval 30
     speed 100
     full-duplex
    interface FastEthernet0/1.1
     description DATA VLAN
     encapsulation dot1Q 20
     ip address 192.168.20.254 255.255.255.0
     ip access-group inside_acl in
     ip nat inside
     ip inspect IOS_FIREWALL in
     ip virtual-reassembly in
     ip tcp adjust-mss 1379
    interface FastEthernet0/1.2
     description VOICE VLAN
     encapsulation dot1Q 21
     ip address 192.168.21.254 255.255.255.0
    interface Serial0/2/0:15
     no ip address
     encapsulation hdlc
     isdn switch-type primary-net5
     isdn incoming-voice voice
     no cdp enable
    interface FastEthernet0/3/0
     no ip address
     ip access-group outside_acl in
     ip nat outside
     ip virtual-reassembly in
     shutdown
     duplex auto
     speed auto
     crypto map CryptoCY
    ip local pool VPNPool 192.168.23.2 192.168.23.10
    ip forward-protocol nd
    ip http server
    no ip http secure-server
    ip nat inside source list nat_list interface FastEthernet0/3/0 overload
    ip route 0.0.0.0 0.0.0.0 [default gateway ip]
    ip access-list standard VTY
      permit 192.168.20.0 0.0.0.255
    ip access-list extended CryptoACL
     permit ip 192.168.20.0 0.0.0.255 192.168.3.0 0.0.0.255
     permit ip 192.168.21.0 0.0.0.255 192.168.5.0 0.0.0.255
     permit ip 192.168.21.0 0.0.0.255 192.168.6.0 0.0.0.255
     permit ip 192.168.21.0 0.0.0.255 192.168.12.0 0.0.0.255
     permit ip 192.168.21.0 0.0.0.255 192.168.2.0 0.0.0.255
     permit ip 192.168.20.0 0.0.0.255 192.168.10.0 0.0.0.255
     permit ip host 192.168.22.1 192.168.5.0 0.0.0.255
     permit ip host 192.168.20.1 192.168.5.0 0.0.0.255
     permit ip host 192.168.22.1 192.168.6.0 0.0.0.255
    ip access-list extended DFBIT_acl
     permit tcp any any
    ip access-list extended inside_acl
     permit ip 192.168.20.0 0.0.0.255 host 192.168.3.35
     permit ip 192.168.20.0 0.0.0.255 host 192.168.3.39
     permit ip 192.168.20.0 0.0.0.255 host 192.168.3.23
     permit ip 192.168.20.0 0.0.0.255 host 192.168.3.18
     permit ip 192.168.20.0 0.0.0.255 host 192.168.3.55
     permit ip 192.168.20.0 0.0.0.255 host 192.168.10.144
     permit ip 192.168.20.0 0.0.0.255 host 192.168.10.146
     permit ip 192.168.20.0 0.0.0.255 host 192.168.10.141
     permit ip host 192.168.20.253 host 192.168.3.21
     permit ip host 192.168.20.254 host 192.168.3.21
     permit ip 192.168.20.0 0.0.0.255 host 192.168.3.10
     permit ip 192.168.20.0 0.0.0.255 host 192.168.20.254
    ip access-list extended nat_list
     deny   ip host 192.168.20.254 192.168.10.0 0.0.0.255
     deny   ip host 192.168.20.254 192.168.3.0 0.0.0.255
     deny   ip host 192.168.20.1 192.168.3.0 0.0.0.255
     deny   ip host 192.168.20.1 192.168.10.0 0.0.0.255
     deny   ip host 192.168.20.2 192.168.3.0 0.0.0.255
     deny   ip host 192.168.20.2 192.168.10.0 0.0.0.255
     permit ip host 192.168.20.1 any
     permit ip host 192.168.20.2 any
     permit ip host 192.168.20.254 any
    ip access-list extended outside_acl
     permit gre any host [ip address]
     permit esp any host [ip address]
     deny   ip any any
    ip sla 2
     icmp-echo 192.168.10.254 source-interface FastEthernet0/1.1
     frequency 180
     timeout 500
    ip sla schedule 2 life forever start-time now
    logging 192.168.3.21
    route-map DFBIT_routemap permit 10
     match ip address DFBIT_acl
     set ip df 0
    route-map ISP2 permit 10
     match ip address nat_list
     match interface FastEthernet0/3/0
    route-map nonat permit 10
     match ip address nonat_acl
    route-map ISP1 permit 10
     match ip address nat_list
     match interface FastEthernet0/0

    You cannot access internet, because all traffic is tunneled for VPN !!!!
    Please see cisco tech documentation and bypass traffic for internet.
    eg.  if lan traffic is going from site a to site b  then through vpn
          else
           lan traffic to internet (any) should be out thorugh the vpn .

Maybe you are looking for

  • IPod Touch 2nd gen deleted all of my pictures?

    My iPod touch 2nd gen 8gb had 150 of my photos on it. I went to view my photos on it and they were all gone! nothing else was deleted besides my photos. I have my photos on my Mac, but why did this happen?

  • Interlaced and choppy looking video

    Hi, I have a 16:9 NTSC Motion menu I am trying to encode in compressor for DVDSP. Unfortunately, when compressed with DVD: Best Quality 90 minutes preset (even at 23.97 FPS, progressive) it still looks choppy with interlace artifacting. If I drop it

  • Addition in script

    Hi All,      I need to add EKPO-NETPR and KOMVD-KWERT and pass it to EKPO-NETWR. /:  &EKPO-NETWR& = &EKPO-NETPR& + &KOMVD-KWERT& This is not working. Please help me out by giving the way how to add these. Thanks a lot. Regards, Seenu.

  • Looking for a hard drive for a 2007 Macbook Pro

    I am looking around to replace my 160 gig hard drive for something larger. These are my choices: Hitachi 500GB Travelstar SATA 7200 RPM Hitachi Travelstar 5K500.B - 500GB 2.5" SATA 5400 RPM 8MB Fujitsu MJA2500BH-G2 500GB 5400 RPM 8MB I am just lookin

  • T-Code BP - Create Business Partner - Grant Sponsor

    Hi All,    Can anyone suggest any approach for loading Grant Sponsors during initial Conversion? Is there any BAPI/ Standard Program for doing this? Best Regards, Kazmi