Pro c on linux oracle 8.1.5

I use oracle 8.1.5 on redhat linux 6.1
and I encounter a problem
when compile the demo from oracle
pro c version 8.1.5
in precomp/demo directory
make -f demo_proc.mk
[oracle@dragon proc]$ make -f demo_proc.mk
make: `/home/oracle/lib/libclntsh.so' is up to date.
[oracle@dragon proc]$
what problem?...
null

Hi,
U should use this command
make -f demo_make.mk samples
or
instead of samples , u can use the sample1 or sample2 .....
Note: above mentioned commands are lnking libraries dynamically. So should set LD_LIBRARY_PATH.
For static building
make -f demo_make.mk samples build_static
If u have any more doubts, U can send personal mails also.
With regrads,
Boby Jose
null

Similar Messages

  • Using Pro*C on Linux Oracle 8.1.6.0 on RH 6.2

    Whe have some problems using Pro*C:
    the program runs ok on all Oracle versions, including Oracle 8.1.6.0 on DEC OSF, but various sql errors are encountered on Linux Red Hat 6.2:
    1) "ORA-01458: invalid length inside variable character string" for this code:
    EXEC SQL BEGIN DECLARE SECTION;
    varchar I_LANGLB [4];
    short O_NOLBLB ;
    varchar O_LIBELB [26];
    EXEC SQL END DECLARE SECTION;
    EXEC SQL INCLUDE SQLCA.H;
    EXEC SQL WHENEVER SQLERROR GO TO MAJ_RESULT;
    EXEC SQL WHENEVER NOT FOUND CONTINUE;
    EXEC SQL DECLARE C0 CURSOR FOR
    SELECT LBL.NOLBLB, LBL.LIBELB
    FROM LBL
    WHERE LBL.EDITLB = 'MON' AND LBL.LANGLB = :I_LANGLB;
    strcpy (I_LANGLB.arr, "fra");
    I_LANGLB.len = 3;
    EXEC SQL OPEN C0;
    for ( ; ; )
    EXEC SQL WHENEVER NOT FOUND DO break;
    EXEC SQL FETCH C0 INTO :O_NOLBLB, :O_LIBELB;
    EXEC SQL CLOSE C0;
    2) with Dynamic Sql: "ORA-01007: variable not in select list"
    SELECT
    nvl(MODEME, ''),
    nvl(NBANME, 0),
    nvl(BASEME, '0'),
    nvl(PRORME,'0'),
    nvl(EVALME, '0'),
    nvl(DECOME, '0') ,
    nvl(CDDAME, '0'),
    nvl(CDMIME, '0'),
    nvl(TXMIME, 0),
    nvl(CDMAME, '0'),
    nvl(TXMAME, 0),
    nvl(CDTXME, '0'),
    nvl(CDSUME, '0'),
    nvl(TXSUME, 0),
    nvl(DUMIME, 0),
    nvl(MTVNME, 0),
    nvl(NOANML, 0),
    nvl(TAUXML, 0),
    DESIME
    FROM MET, LME
    WHERE MODEME = MODEML
    AND nvl(INLBME,'1')='1'
    ORDER BY MODEME,NOANML
    [ or
    ORDER BY 1,17 ]
    In both cases,
    We use the following precompiling options:
    include=/oracle/OraHome1/precomp/lib ireclen=132 oreclen=132 sqlcheck=syntax parse=partial select_error=no char_map=VARCHAR2 mode=ORACLE unsafe_null=yes
    dbms=V8
    Could someone help ?
    Thanks ...

    My answer is only for 1. problem (about ORA-01458)
    I think that you use declaration for cursor C0 with a varchar
    variable before you ininitialize length (member .len of varchar
    structure) of this variable.
    It's famous that many errors come from uninitialized varchar
    variables in Pro*C.

  • Oracle 10g or less Pro Fortran for linux  ?

    Hello,
    I'm looking for the oracle pro-fortran for linux.
    Where can i find it ?
    Thanks

    Doesn't appear to be part of the Linux bundle. It may not have been ported. I checked 10gR1 and 9.2.x.

  • SOLUTION MANAGER 7.1 install on linux/oracle java error on ABAP IMPORT

    Hello sdn experts, Im trying to install the Solution Manager 7.1 on linux/oracle, but It always stops at the abap import,
    The error is in the Program "Migration Monitor", that exit with error.
    Reviewing the logs, it seems that is trying to execute a java command line with a unrecognized option:
    "Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 1. Output:
    JVMJ9VM007E Command-line option unrecognized : -Xjvm:j9vm23"
    Usage : java [-options] class...
    As you can see, the sdk used is from IBM, and it works for all other saps we have here.
    Is the wrong jdk? Which I should use if its wrong?
    If is the right jdk, how could I get rid of this option and change it?
    Any idea would be appreciated.
    Thank you

    Hi Maurici,
    have you checked this note already?
    [https://service.sap.com/sap/support/notes/1159935|https://service.sap.com/sap/support/notes/1159935]
    It is about your error message. ...
    Best, Hannes

  • Error configuration tools EPM 11.1.2.0.0 on Linux  Oracle Enterprise 64bit

    Dear all,
    I have my Hyperion EPM 11.1.2.0.0 installed on server Linux Oracle Enterprise 64bit
    the installation succeeded, until i try to run configuration, it wont show up. I already tried to run confgtool.sh, then it shows error message like below
    ============================================================================================
    Launching the Hyperion Configuration Utility, please wait...
    Running preconfig checks...
    Running EPM_ORACLE_HOME check...
    EPM_ORACLE_HOME environment variable value:
    /home/hyperion/Oracle/Middleware/EPMSystem11R1
    JAVA_HOME environment variable value:
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/../jdk160_11
    EPM_ORACLE_HOME check succeeded
    Running .oracle.products check... .oracle.products check succeeded Running Jars manifest check...
    Time spent for manifests parsing: 342 ms
    Maximum jars depth achieved: 9, while restriction was: unrestricted
    Parsed 417 manifests
    Total jars and classpath entries encountered: 417
    Total not-existing referenced classpath entries count: 56
    Total classpath elements to check: 67
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.dms_11.1.1/dms.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_j2se.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_j2se.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/org.apache.commons.beanutils_1.6.jar
    not exists; file depth: 1; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.http_client_11.1.1.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_soa.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    ERROR:
    /home/hyperion/Oracle/Middleware/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar
    not exists; file depth: 2; referenced from /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/jlib/11.1.2.0/epm_soa.jar
    referenced from
    /home/hyperion/Oracle/Middleware/EPMSystem11R1/common/config/11.1.2.0/configtool.jar
    FATAL ERROR: Jars manifest check failed with message "Some referenced jars do not exist"
    Exiting in 30 seconds
    ============================================================================================
    i already create new user that have access to oracle middleware home (not ROOT user)
    Any idea on this problem?
    Thanks a lot

    Dear John,
    Thanks for replying
    i've downloaded and extracted all files on edelivery.oracle.com sections Oracle EPM (11.1.2.0.0) Media Pack for Linux x86-64.
    1st symptoms : i've installed it all, at the first attempt, Oracle HTTP Server always failed to install. But on the 2nd try it succeeded (install only oracle http server), so i assumed all part already installed well.
    2nd symptoms : after installation, there is config button on the GUI, but after i click it, it only closed the GUI, and nothing happen. So i running configtool.sh from config directories. and it show the error.
    For user account, already have full access to relevant directories.
    I checked on every logs folder on hyperion home, there is no related logs for this installation. any idea where the install log is?
    I can't find "oracle_common" folder, i think this is the root cause, because the error logs referring to jar files from this folder
    Thanks
    Edited by: nerv18 on Sep 17, 2010 10:24 AM

  • WHERE ARE Linux Oracle Services (as in NT) ?

    WHERE ARE the Linux Oracle Services created by the OUI (such as listener, db, apache, etc) and how cn i start / stop them automatically ?
    Also, is there in any place "the oracle program group menus" like in WINDOWS START MENU, so we can see all programs installed ?
    I Installed 9iAS release 2 in RedHat
    Thanks

    I use 8.1.7 on LInux. There are dbshut and dbstart scripts in $ORACLE_HOME/bin and there is example of "service-script" in Installation Guiede. So you can create "service-scripts", put in in /etc/rc.d/init.d and usecommends like /etc/rc.d/init/oradb start/stop, besides it you can make links for this script in rc.0, rc.6, rc.3 etc.. (like other services). You may write me a letter ([email protected]) and I'll send you service-scripts, if you will have troubles.

  • Linux+Oracle:Unable to start the DSCManager

    Hello
    I installed LCES on Linux+Oracle.When start Jboss,some errors like this:
    2007-08-02 11:51:01,493 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterLocal.doRequiresNe w(com.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transa ctionCallback) throws com.adobe.idp.dsc.DSCException:
    com.adobe.idp.DocumentError: The document pointing to the file "/opt/jboss_adobe_new/server/all/svcnative/DocumentStorage/docm1185965642591/0538f4740b03 e39d8e86e521ff9aa9cc" has expired. Consider increasing the document disposal timeout.
    at com.adobe.idp.DocumentFileBackend.checkFileExistance(DocumentFileBackend.java:256)
    at com.adobe.idp.DocumentFileBackend.copy(DocumentFileBackend.java:263)
    at com.adobe.idp.Document.passivate(Document.java:744)
    at com.adobe.idp.Document.passivate(Document.java:691)
    ^^^^^^^
    and
    2007-08-02 11:51:01,572 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterLocal.doRequiresNe w(com.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transa ctionCallback) throws com.adobe.idp.dsc.DSCException:
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$11.doInTransaction(Compon entRegistryImpl.java:665)
    at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionBMTAdapterBean.doRequiresNew (EjbTransactionBMTAdapterBean.java:218)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Caused by: java.lang.ClassNotFoundException: com.adobe.idp.scheduler.SchedulerServiceImpl
    at com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingImportExport(DSContainerSearchP olicy.java:446)
    at com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentLast(DSContainerSearchPol icy.java:300)
    ^^^^^^^^^^^^^^
    and
    2007-08-02 11:51:01,633 ERROR [com.adobe.idp.dsc.startup.DSCStartupServlet] DSC Startup failed. Reason: Internal error.
    2007-08-02 11:51:01,643 WARN [com.adobe.idp.dsc.startup.DSCStartupServlet] Unable to start the DSCManager
    Can somebody help me?
    Thanks.

    One suggestion I can make is to re-deploy the solution components (DSCs).
    - Jayan

  • Pros and Cons af Oracle 10g upgrade to 11g

    Hi Basis Expert,
    We have an requirement of SAP upgrade which includes BW 3.5, CRM and R/3 (4.7).
    These components needs to be upgraded to the latest version
    BW 3.5 to BI 7.0
    R/3 (4.7) to ECC 6.0
    and also CRM upgrade to the new version
    The OS used is AIX and DB used is oracle 10g.
    Can anybody share the pros and cons of oracle DB upgrade from 10g to 11g after SAP upgrade.
    Regards,
    Anil.

    Hi DatabaseSAP and others,
    Thanks for your reply
    I started with the Oracle 11g software installer. But it gave an error during 71%. Error is
    Error in invoking target 'rat_on part_on dm_on olap_on sdo_on' of makefile '/oracle/DBW/112_64/rdbms/lib/ins_rdbms.mk'.
    See '/oracle/DBW/oraInventory/logs/installActions2011-10-10_12-04-03PM.log' for details.
    Abort      Retry         Continue
    But when i was going thorough the installActions2011-10-10_12-04-03PM.log . I could find that there are 7 arguments which is failed.
    Below are the argument  details
    1)INFO: Hard Limit: maximum user processes: This is a prerequisite condition to test whether the hard limit for "maximum user processes" is set to at least 16384.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    Verification Result for Node:p19849dev136
    INFO: Expected Value:1024
    INFO: Actual Value:9223372036854775807
    INFO: -
    INFO: *********************************************
    INFO: Hard Limit: maximum user processes: This is a prerequisite condition to test whether the hard limit for "maximum user processes" is set to at least 16384.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    INFO: Expected Value:16384
    INFO: Actual Value:3048
    INFO: Error Message:PRVF-4354 : Proper hard limit for resource "maximum user processes" not found on node "p19849dev136" [Expected = "16384" ; Found = "3048"]
    INFO: Cause: Hard limit for the resource does not meet the requirement on the specified node.
    INFO: Action: Modify the resource limits to meet the requirement.
    2)INFO: OS Kernel Parameter: ncargs: This is a prerequisite condition to test whether the OS kernel parameter "ncargs" is properly set.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    INFO: Expected Value:128
    INFO: Actual Value:6
    INFO: Error Message:PRVF-7543 : OS Kernel parameter "ncargs" does not have proper value on node "p19849dev136" [Expected = "128" ; Found = "6"].
    INFO: Cause: Kernel parameter value does not meet the requirement.
    INFO: Action: Modify the kernel parameter value to meet the requirement.
    3)INFO: OS Kernel Parameter: tcp_ephemeral_low: This is a prerequisite condition to test whether the OS kernel parameter "tcp_ephemeral_low" is properly set.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    INFO: Expected Value:9000
    INFO: Actual Value:32768
    INFO: Error Message:PRVF-7543 : OS Kernel parameter "tcp_ephemeral_low" does not have proper value on node "p19849dev136" [Expected = "9000" ; Found = "32768"].
    INFO: Cause: Kernel parameter value does not meet the requirement.
    INFO: Action: Modify the kernel parameter value to meet the requirement.
    4)INFO: OS Kernel Parameter: tcp_ephemeral_high: This is a prerequisite condition to test whether the OS kernel parameter "tcp_ephemeral_high" is properly set.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    INFO: Expected Value:65500
    INFO: Actual Value:65535
    INFO: Error Message:PRVF-7543 : OS Kernel parameter "tcp_ephemeral_high" does not have proper value on node "p19849dev136" [Expected = "65500" ; Found = "65535"].
    INFO: Cause: Kernel parameter value does not meet the requirement.
    INFO: Action: Modify the kernel parameter value to meet the requirement.
    5)INFO: OS Kernel Parameter: udp_ephemeral_low: This is a prerequisite condition to test whether the OS kernel parameter "udp_ephemeral_low" is properly set.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    INFO: Expected Value:9000
    INFO: Actual Value:32768
    INFO: Error Message:PRVF-7543 : OS Kernel parameter "udp_ephemeral_low" does not have proper value on node "p19849dev136" [Expected = "9000" ; Found = "32768"].
    INFO: Cause: Kernel parameter value does not meet the requirement.
    INFO: Action: Modify the kernel parameter value to meet the requirement.
    INFO: -
    6)INFO: OS Kernel Parameter: udp_ephemeral_high: This is a prerequisite condition to test whether the OS kernel parameter "udp_ephemeral_high" is properly set.
    INFO: Severity:IGNORABLE
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    INFO: Expected Value:65500
    INFO: Actual Value:65535
    INFO: Error Message:PRVF-7543 : OS Kernel parameter "udp_ephemeral_high" does not have proper value on node "p19849dev136" [Expected = "65500" ; Found = "65535"].
    INFO: Cause: Kernel parameter value does not meet the requirement.
    INFO: Action: Modify the kernel parameter value to meet the requirement.
    7)INFO: Users With Same UID: This test checks that multiple users do not exist with user id as "0".
    INFO: Severity:CRITICAL
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -
    INFO: Verification Result for Node:p19849dev136
    WARNING: Result values are not available for this verification task
    INFO: Error Message:<CV_VAL>root,|super,|zero,|</CV_VAL><CV_ERES>0</CV_ERES>
    INFO: Cause:Cause Of Problem Not Available
    INFO: Action:User Action Not Available
    INFO: *********************************************
    Please let me know what is the 7th (last one) argument.
    Regards,
    Anil Shenoy

  • Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server

    Hello Experts,
    I have never done a BOBJ install before and I have some questions:
    First, here is our setup: Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server
    1.     We are being asked how big u2013 disk space- to make the server. All I can find is 14 GB for an English only install, there is no documentation on how big the databases need to be. Does anyone have any experience and can tell me how big the databases are going to be initially? I need to tell the server team how much space to put on the server.
    2.     The documentation says to have two databases or schemas, one for Central Management Server and one for the Auditing Data Store. My question around this is whether there is a preferred way to do it, separate databases or separate schemas?
    3.     The documentation does not say anything about the file system layout, do we need to create the standard SAP file system layout (i.e. /sapmnt, etc.)
    Many many thanks in advance, any advice would be a greate help .. please help
    Regards,
    Sunil Patel

    Hi,
    here are some answers:
    1. Well for the Installation of the Software as itself (not the databases) i would recommend at least 30 GB. All the Reports are getting stored physically in the installation directory. This behavior is by default. Later you can move the FileStore (where the Reports, Universes, etc. are located in) to a NAS share f.e.
    With Regards to the Databases i would recommend 1 GB for the CMS DB and 5 GB for the Audit DB. It depends on how you Audit your System. If you audit more actions, more information in the Audit DB will be stored.
    2. 2 Schemas on one DB is fine
    3. Usually you run a BOE installation on UNIX/LINUX under an installation user. BOE will be installed into his Home Directory.
    Regards
    -Seb.

  • Help! Im getting really confused!  Linux Oracle 9 to Windows 2000 MS SQL.

    Please can someone explain the process and what needs doing.
    I am trying to connect an oracle 9i database which is running on Linux Red Hat Enterprise 4, to a MS SQL database which is running on Windows Server 2000.
    I have read the following document https://metalink.oracle.com/metalink/plsql/f?p=130:14:1119006956529253705::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,231458.1,1,1,1,helvetica
    But I am confused as to where each configuration file sits.
    I have downloaded oracle 9i for windows and installed the OTG and tg4msql on the windows 2000 server. On the windows 2000 server I have created the following files:
    tnsnames.ora:
    TG4MSQL.domain.name =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tCP)
    (HOST = <IP_ADDRESS>)
    (PORT=1521) )
    (CONNECT_DATA =
    (SID = tg4msql))
    (HS=OK)
    Listener.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle9i)
    (PROGRAM = extproc))
    (SID_DESC =
    (SID_NAME = tg4msql)
    (ORACLE_HOME = D:\oracle9i)
    (PROGRAM = tg4msql)
    (ENVS=LD_LIBRARY_PATH=D:\oracle9i)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IPADDRESS)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    inittg4msql.ora
    HS_FDS_CONNECT_INFO="SERVER=<IP_ADDRESS>;database=<MS SQL DATABASE NAME"
    HS_FDS_TRACE_LEVEL=0
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_FDS_TRACE_LEVEL=OFF
    Then on the Linux server I have the following tnsnames.ora:
    TG4MSQL.DOMAIN.NAME =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <MS SQL IP ADDRESS>)(PORT = 1521))
    (CONNECT_DATA =
    (SID = tg4msql))
    I then created a database link on the Linux Oracle server:
    CODE
    create database link tg4msql connect to "sa"
    identified by "password" using 'tg4msql';
    I then tried a:
    CODE
    select * from all_catalog@tg4msql;
    and get:
    Ora-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NEWTORK/NCR message 12571
    ORA-02063: preceeding 2 lines for TG4MSQL
    I feel I have done everything I have read but its not very clear where everything has to be put or how it all ties together.
    Any help would be useful!
    Thanks.

    well I don't see how your ODBC driver on linux is configured. You need one (ODBC driver on linux, it's not there by "default") You can buy one or use a free one
    find it here
    http://www.unixodbc.org/
    then once you set up ODBC and able to connec to your SQL SERVER from command line using iSQL or TSQL from linux then do all these steps you described and it should work.
    I didn't have any problems setting it up, works like a charm
    Eugene Roytman
    OCP DBA

  • Windows client - Linux oracle server SSO through Win2003 DC

    Hi,
    I'm trying to do SSO with the captioned setting, the outline can be simplified as below:
    windows cleint --> Win2003 DC --> Linux Oracle server
    Of course, the Linux server would issue kerberos ticket to the Windows client after which successfully authenticates with the Win2003 DC.
    I have problem doing test connection for both Windows client & Linux server when connecting to the database. Both with error "ORA-12638: Credential retrieval failed" when testing with Oracle Net manager. Listener & DB were both started.
    Platform: Redhat Enterprise ES4, Oracle 10.2.0
    The configuration files are as follows:-
    SQLNET.ORA
    SQLNET.AUTHENTICATION_SERVICES= (BEQ, KERBEROS5)
    SQLNET.KERBEROS5_KEYTAB = /u01/app/oracle/oracle/product/10.2.0/db_1/ORACLE.keytab
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    SQLNET.KERBEROS5_CONF = /etc/krb5.conf
    SQLNET.KERBEROS5_CONF_MIT = TRUE
    NAMES.DEFAULT_DOMAIN = test.com
    SQLNET.AUTHENTICATION_KERBEROS5_SERVICE = ORACLE
    TRACE_LEVEL_SERVER=16
    TRACE_DIRECTORY_SERVER=/u01/app/oracle/oracle/product/10.2.0/db_1/network/log/
    TRACE_FILE_SERVER=server
    TRACE_UNIQUE_SERVER=ON
    LISTENER.ORA
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = orcl)
    (ORACLE_HOME = /u01/app/oracle/oracle/product/10.2.0/db_1)
    (GLOBAL_DBNAME = ORCL.TEST.COM)
    # (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = rhedlora)(PORT = 1521))
    TNSNAMES.ORA
    ORCL.TEST.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rhedlora)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.test.com)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Can anyone advise what's wrong? Thanks in advance.

    Sorry for miscommunication..
    this is the actual listner information :
    LSNRCTL> start
    Starting tnslsnr: please wait...TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    System parameter file is E:\oracle\ora92\network\admin\listener.ora
    Log messages written to E:\oracle\ora92\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ECT-STPPC2316.BLR.INDIA.
    CGINET)(PORT=1521)))Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Produc
    tion
    Start Date 20-DEC-2007 13:32:16
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File E:\oracle\ora92\network\admin\listener.ora
    Listener Log File E:\oracle\ora92\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ECT-STPPC2316.BLR.INDIA.CGINET)(PORT
    =1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    =============
    I am using different listner(Listner).
    Please let me know if I have to make any configuration at Client Machine.

  • Linux + Oracle vs WCF service

    I'm having a problem between Linux /Oracle calling a WCF service.
    My client uses Oracle/Linux to send/receive data to my service, but it's using iso-8859-1 encoding, wich is not accepted by WCF (utf standard).
    I've found some solutions for this problem, but all involves DLLs installation and Windows, what is not possible with Linux.
    Unfortunately i don't know nothing about Oracle, and i don't know if it's possible to my client encode the data before sending/receiving to me.
    I'd appreciate some help.
    Thanks!

    The linux client can continue sending the data as it pleases (i.e., in iso-8859-1), and the encoder, used on the server only, would be able to read it. The encoder then can decide how to encode the response back to the client (UTF-8 or iso-8859-1 again).
    If you want the response to be in iso-8859-1 as well you may also need something like a message inspector to update the content-type header with the appropriate charset.
    Update: example with the custom encoder using ISO-8859-1
    public class StackOverflow_7033442 {     [ServiceContract] public interface ITest {         [OperationContract] string Echo(string text); } public class Service : ITest {         public string Echo(string text)         {             return text;         } } public static void Test() {         string baseAddress = "http://" + Environment.MachineName + ":8000/Service";         ServiceHost host = new ServiceHost(typeof(Service), new Uri(baseAddress));         CustomBinding binding = new CustomBinding(             new CustomTextMessageBindingElement("iso-8859-1", "text/xml", MessageVersion.Soap11),             new HttpTransportBindingElement());         host.AddServiceEndpoint(typeof(ITest), binding, "");         host.Open();         Console.WriteLine("Host opened");          string request = @"<?xml version=""1.0"" encoding=""iso-8859-1""?> <s:Envelope xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"">   <s:Body>     <Echo xmlns=""http://tempuri.org/"">       <text>Hello áéíóú</text>     </Echo>   </s:Body> </s:Envelope>";         HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(baseAddress);         req.Method = "POST";         req.ContentType = "text/xml; charset=iso-8859-1";         req.Headers["SOAPAction"] = "http://tempuri.org/ITest/Echo"; Stream reqStream = req.GetRequestStream(); Encoding encoding = Encoding.GetEncoding("iso-8859-1"); byte[] reqBytes = encoding.GetBytes(request); reqStream.Write(reqBytes, 0, reqBytes.Length); reqStream.Close(); HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); Console.WriteLine("HTTP/{0} {1} {2}", resp.ProtocolVersion, (int)resp.StatusCode, resp.StatusDescription); foreach (var header in resp.Headers.AllKeys) {             Console.WriteLine("{0}: {1}", header, resp.Headers[header]); } if (resp.ContentLength > 0) { Console.WriteLine(new StreamReader(resp.GetResponseStream(), encoding).ReadToEnd()); } Console.Write("Press ENTER to close the host"); Console.ReadLine(); host.Close(); } #region Custom Text Message Encoder sample, verbatim public class CustomTextMessageEncoder : MessageEncoder { private CustomTextMessageEncoderFactory factory; private XmlWriterSettings writerSettings; private string contentType; public CustomTextMessageEncoder(CustomTextMessageEncoderFactory factory) { this.factory = factory; this.writerSettings = new XmlWriterSettings(); this.writerSettings.Encoding = Encoding.GetEncoding(factory.CharSet); this.contentType = string.Format("{0}; charset={1}", this.factory.MediaType, this.writerSettings.Encoding.HeaderName); } public override string ContentType { get { return this.contentType; } } public override string MediaType { get { return factory.MediaType; } } public override MessageVersion MessageVersion { get { return this.factory.MessageVersion; } } public override Message ReadMessage(ArraySegment<byte> buffer, BufferManager bufferManager, string contentType) { byte[] msgContents = new byte[buffer.Count]; Array.Copy(buffer.Array, buffer.Offset, msgContents, 0, msgContents.Length); bufferManager.ReturnBuffer(buffer.Array); MemoryStream stream = new MemoryStream(msgContents); return ReadMessage(stream, int.MaxValue); } public override Message ReadMessage(Stream stream, int maxSizeOfHeaders, string contentType) { XmlReader reader = XmlReader.Create(stream); return Message.CreateMessage(reader, maxSizeOfHeaders, this.MessageVersion); } public override ArraySegment<byte> WriteMessage(Message message, int maxMessageSize, BufferManager bufferManager, int messageOffset) { MemoryStream stream = new MemoryStream(); XmlWriter writer = XmlWriter.Create(stream, this.writerSettings); message.WriteMessage(writer); writer.Close(); byte[] messageBytes = stream.GetBuffer(); int messageLength = (int)stream.Position; stream.Close(); int totalLength = messageLength + messageOffset; byte[] totalBytes = bufferManager.TakeBuffer(totalLength); Array.Copy(messageBytes, 0, totalBytes, messageOffset, messageLength); ArraySegment<byte> byteArray = new ArraySegment<byte>(totalBytes, messageOffset, messageLength); return byteArray; } public override void WriteMessage(Message message, Stream stream) { XmlWriter writer = XmlWriter.Create(stream, this.writerSettings); message.WriteMessage(writer); writer.Close(); } } public class CustomTextMessageEncoderFactory : MessageEncoderFactory { private MessageEncoder encoder; private MessageVersion version; private string mediaType; private string charSet; internal CustomTextMessageEncoderFactory(string mediaType, string charSet, MessageVersion version) { this.version = version; this.mediaType = mediaType; this.charSet = charSet; this.encoder = new CustomTextMessageEncoder(this); } public override MessageEncoder Encoder { get { return this.encoder; } } public override MessageVersion MessageVersion { get { return this.version; } } internal string MediaType { get { return this.mediaType; } } internal string CharSet { get { return this.charSet; } } } public class CustomTextMessageBindingElement : MessageEncodingBindingElement, IWsdlExportExtension { private MessageVersion msgVersion; private string mediaType; private string encoding; private XmlDictionaryReaderQuotas readerQuotas; CustomTextMessageBindingElement(CustomTextMessageBindingElement binding) : this(binding.Encoding, binding.MediaType, binding.MessageVersion) { this.readerQuotas = new XmlDictionaryReaderQuotas(); binding.ReaderQuotas.CopyTo(this.readerQuotas); } public CustomTextMessageBindingElement(string encoding, string mediaType, MessageVersion msgVersion) { if (encoding == null) throw new ArgumentNullException("encoding"); if (mediaType == null) throw new ArgumentNullException("mediaType"); if (msgVersion == null) throw new ArgumentNullException("msgVersion"); this.msgVersion = msgVersion; this.mediaType = mediaType; this.encoding = encoding; this.readerQuotas = new XmlDictionaryReaderQuotas(); } public CustomTextMessageBindingElement(string encoding, string mediaType) : this(encoding, mediaType, MessageVersion.Soap11WSAddressing10) { } public CustomTextMessageBindingElement(string encoding) : this(encoding, "text/xml") { } public CustomTextMessageBindingElement() : this("UTF-8") { } public override MessageVersion MessageVersion { get { return this.msgVersion; } set { if (value == null) throw new ArgumentNullException("value"); this.msgVersion = value; } } public string MediaType { get { return this.mediaType; } set { if (value == null) throw new ArgumentNullException("value"); this.mediaType = value; } } public string Encoding { get { return this.encoding; } set { if (value == null) throw new ArgumentNullException("value"); this.encoding = value; } } // This encoder does not enforces any quotas for the unsecure messages. The // quotas are enforced for the secure portions of messages when this encoder // is used in a binding that is configured with security. public XmlDictionaryReaderQuotas ReaderQuotas { get { return this.readerQuotas; } } #region IMessageEncodingBindingElement Members public override MessageEncoderFactory CreateMessageEncoderFactory() { return new CustomTextMessageEncoderFactory(this.MediaType, this.Encoding, this.MessageVersion); } #endregion public override BindingElement Clone() { return new CustomTextMessageBindingElement(this); } public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(BindingContext context) { if (context == null) throw new ArgumentNullException("context"); context.BindingParameters.Add(this); return context.BuildInnerChannelFactory<TChannel>(); } public override bool CanBuildChannelFactory<TChannel>(BindingContext context) { if (context == null) throw new ArgumentNullException("context"); return context.CanBuildInnerChannelFactory<TChannel>(); } public override IChannelListener<TChannel> BuildChannelListener<TChannel>(BindingContext context) { if (context == null) throw new ArgumentNullException("context"); context.BindingParameters.Add(this); return context.BuildInnerChannelListener<TChannel>(); } public override bool CanBuildChannelListener<TChannel>(BindingContext context) { if (context == null) throw new ArgumentNullException("context"); context.BindingParameters.Add(this); return context.CanBuildInnerChannelListener<TChannel>(); } public override T GetProperty<T>(BindingContext context) { if (typeof(T) == typeof(XmlDictionaryReaderQuotas)) { return (T)(object)this.readerQuotas; } else { return base.GetProperty<T>(context); } } #region IWsdlExportExtension Members void IWsdlExportExtension.ExportContract(WsdlExporter exporter, WsdlContractConversionContext context) { } void IWsdlExportExtension.ExportEndpoint(WsdlExporter exporter, WsdlEndpointConversionContext context) { // The MessageEncodingBindingElement is responsible for ensuring that the WSDL has the correct // SOAP version. We can delegate to the WCF implementation of TextMessageEncodingBindingElement for this. TextMessageEncodingBindingElement mebe = new TextMessageEncodingBindingElement(); mebe.MessageVersion = this.msgVersion; ((IWsdlExportExtension)mebe).ExportEndpoint(exporter, context); } #endregion } #endregion }

  • Linux Oracle RAC Issues with CRS

    Using the Linux Oracle RAC install guide - I've finally installed my install on Linux for the Oracle RAC. Just one problem - now after 10 mins or so - one of my nodes loses communication which barks out a PRKH-1010 error after trying to run a status check on my nodes using the srvctl status nodeapps -n <servername> command.
    any clues or ways to diagnose?

    Hi!
    The gsd relies on some files residing in /tmp/.oracle
    Are they still there?
    GSD is known to stop if they are absent.
    cu
    Andreas

  • Howto install SAP NW Windows Server with Linux Oracle 11g?

    Hi !!!
    In this moment i want to install a SAP Netweaver PI, but the client already has a linux database server with oracle.
    I read the MasterGuide but i cannot find the section or similar situation.
    Scenario
    WK8-PI
    192.168.1.100
    Admin y passwd
    Linux-Oracle
    192.168.1.77
    port: 3355
    user y passwd
    how to install SAP NW?
    Levy

    Hi!!!
    i read the instruction with Distribution System, and continue the steps, but the time to choose SAP System Database i cannot write the linux server always show me the Windows Server, and i can write the unique field is the instance. After push the next button and send me error, not install oracle database.
    thanks
    Levy Gonzalez

  • Windows主机访问虚拟机linux中的oracle实例的安装方法

    在学习oracle时一般都会在windows中安装虚拟机,在虚拟机安装linux系统并[安装oracle.
    下面是自己的在windows中安装虚拟机并让windows主机能访问虚拟机中oracle实例的安装方法写的不好请大家多多包涵.
    一.准备安装所需要的软件:
    1.VMware虚拟机的下载和安装在我的博客中已经提到,这里就不再详细阐述。
    2.先推荐一个redhat的下载地址,RedHat Linux 5企业版:content.gougou.com/content,
    这个比较全面,但是也比较大(2.68G),如果自己有合适的linux安装版本,可以不使用这个。
    二.在VMware虚拟机为RedHat Linux创建新的虚拟机就不详述了
    三.在新建的虚拟机里安装RedHat Linux就不详述了
    四.在linux系统中安装oracle
    为了创建一个新的oracle用户输入和以下相似的命令:
    # /usr/sbin/useradd -g oinstall -G dba[,oper] oracle
    给oralce用户设置密码
    # passwd oracle
    修改内核参数编辑/etc/sysctl.conf文件
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default = 262144
    net.core.rmem_max = 262144
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    当在/etc/sysctl.conf文件中指定这些内核参数后你要重启系统
    也可以执行以下命令让内核参数生效
    /sbin/sysctl -p
    给oracle用户设置shell限制
    为了提高数据库软件在linux系统中的性能你必须给oracle用户增加以下shell限制:
    shell limit item in limits.confg hard limit
    能打开文件的最大数量 nofile 65536
    单个用户可用的最大进程数 nproc 16384
    在/etc/security/limits.conf文件中增加以下限制:
    oracle soft nproc 2047
    oracle hard nproc 16384
    oracle soft nofile 1024
    oracle hard nofile 65536
    在/ect/pam.d/login文件如果下面显示的参数没有就增加到该文件中
    session required pam_limits.so
    根据oracle用户的默认shell,对默认的shell启动文件进行以下更改:
    对于Bourne, Bash, or Korn shell在/etc/profile文件中增加下面的代码
    if [ $USER = "oracle" ]; then
    if [ $SHELL = "/bin/ksh" ]; then
    ulimit -p 16384
    ulimit -n 65536
    else
    ulimit -u 16384 -n 65536
    fi
    fi
    对C shell(csh or tcsh)在/etc/csh.login文件中增加以下代码
    if ( $USER == "oracle" ) then
    limit maxproc 16384
    limit descriptors 65536
    endif
    创建oracle根目录可以输入以下相似的命令:
    # mkdir -p /mount_point/app/oracle_sw_owner
    # chown -R oracle:oinstall /mount_point/app/oracle_sw_owner
    # chmod -R 775 /mount_point/app/oracle_sw_owner
    如果oracle根目录的加载点是/u01并且oracle软件使用者用户为oracle那么oracle根目录的路径为:
    /u01/app/oracle
    [root@weblogic28 ~]# mkdir -p /u01/app/oracle
    [root@weblogic28 ~]# chown -R oracle:oinstall /u01/app/oracle
    [root@weblogic28 ~]# chmod -R 775 /u01/app/oracle
    当你配置oracle用户环境变量时设置ORACLE_BASE时就将oracle根目录的路径赋给ORACLE_BASE
    创建存储数据库文件和数据库恢复文件的目录
    创建存储数据库文件的目录的命令如下:
    # mkdir /mount_point/oradata
    # chown oracle:oinstall /mount_point/oradata
    # chmod 775 /mount_point/oradata
    将存放数据库文件的目录创建在oracle根目录下/u01/app/oracle/oradata
    [root@weblogic28 ~]# mkdir /u01/app/oracle/oradata
    [root@weblogic28 ~]# chown oracle:oinstall /u01/app/oracle/oradata
    [root@weblogic28 ~]# chmod 775 /u01/app/oracle/oradata
    创建oracle Home目录/u01/app/oracle/10.2.0/db
    [root@weblogic28 ~]# mkdir /u01/app/oracle/10.2.0/db
    [root@weblogic28 ~]# chown oracle:oinstall /u01/app/oracle/10.2.0/db
    [root@weblogic28 ~]# chmod 775 /u01/app/oracle/10.2.0/db
    创建存储数据库恢复文件的目录的命令如下:
    # mkdir /mount_point/flash_recovery_area
    # chown oracle:oinstall /mount_point/flash_recovery_area
    # chmod 775 /mount_point/flash_recovery_area
    将存放数据库恢复文件的目录创建在oracle根目录下/u01/app/oracle
    [root@weblogic28 ~]# mkdir /u01/app/oracle/flash_recovery_area
    [root@weblogic28 ~]# chown oracle:oinstall /u01/app/oracle/flash_recovery_area
    [root@weblogic28 ~]# chmod 775 /u01/app/oracle/flash_recovery_area
    创建一个/tmp目录
    [root@weblogic28 ~]# mkdir /u01/tmp
    [root@weblogic28 ~]# chmod a+wr /u01/tmp
    切换到oracle用户来设置环境变量
    [oracle@weblogic28 ~]$
    ls -a
    查看.bash_profile文件
    vi .bash_profile
    TEMP=/u01/tmp
    TMPDIR=/u01/tmp
    export TEMP TMPDIR
    export LD_ASSUME_KERNEL=2.6.9
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=/u01/app/oracle/10.2.0/db
    export ORACLE_SID=jycs
    export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
    export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
    export LD_LIBRARY_PATH
    export PATH=$PATH:$ORACLE_HOME/bin
    CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
    CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
    export CLASSPATH
    [oracle@weblogic28 tmp]$# umask
    0022
    umask命令将会显示22,022或0022
    [oracle@weblogic28 tmp]$# env | more
    REMOTEHOST=10.138.135.242
    HOSTNAME=weblogic28
    SHELL=/bin/bash
    TERM=ansi
    HISTSIZE=1000
    TMPDIR=/u01/tmp
    KDE_NO_IPV6=1
    QTDIR=/usr/lib64/qt-3.3
    QTINC=/usr/lib64/qt-3.3/include
    USER=root
    TEMP=/u01/tmp
    LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;0
    1:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.b
    tm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:
    *.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*
    .bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;3
    5:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
    ORACLE_SID=jycs
    ORACLE_BASE=/u01/app/oracle
    KDEDIR=/usr
    MAIL=/var/spool/mail/root
    PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:
    /usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    INPUTRC=/etc/inputrc
    上面显示了你所设置的环境变量
    也可以用下面的命令来查看环境变量
    [oracle@weblogic28 tmp]$ echo $ORACLE_HOME[$ORACLE_SID,$ORACLE_BASE]
    将数据库软件包拷贝到linux系统中
    然后解压文件
    $ gunzip filename.cpio.gz
    [oracle@weblogic28 tmp]$ gunzip 10201_database_linux_x86_64.cpio.gz
    执行上面的命令后会出现在 10201_database_linux_x86_64.cpio文件包
    再执行如下命令解压文件
    $ cpio -idmv < filename.cpio
    [oracle@weblogic28 tmp]$ cpio -idmv <10201_database_linux_x86_64.cpio
    database/stage/prereq/db/refhost_Custom.xml
    database/stage/prereq/db/refhost.xml
    database/stage/prereq/db/db_prereq.xml
    database/stage/prereq/db/dbprereq.jar
    database/stage/prereq/db
    database/stage/prereq/oui/knowledgesrc.xml
    database/stage/prereq/oui/rulemap.xml
    database/stage/prereq/oui/OraPrereqChecks.jar
    database/stage/prereq/oui
    database/stage/prereq/common/rulemap.xml
    database/stage/prereq/common
    会出现以上信息
    如果是远程安装可以使用VNC远程连接到linux服务器上来执行界面安装
    1、配置并开启vnc服务
    [oracle@localhost ~]$ vncserver
    You will require a password to access your desktops.
    Password: ---这里要求输入vnc客户端登录的密码并重复
    Verify:
    New 'localhost.localdomain:2 (oracle)' desktop is localhost.localdomain:2
    Creating default startup script. /home/oracle/.vnc/xstartup
    Starting applications specified in /home/oracle/.vnc/xstartup
    Log file is /home/oracle/.vnc/localhost.localdomain:2.log
    ----如上告诉你vnc终端已经创建好,用的是第二个终端
    2、在创建vnc服务的用户目录下会生成一个.vnc的隐藏目录
    [oracle@localhost ~]$ ls -a
    . .bash_profile Disk1 .gconfd .gstreamer-0.10 .metacity README.htm .viminfo
    .. .bashrc .eggcups .gnome .gtkrc-1.2-gnome2 .mozilla .redhat .vnc
    .bash_history .chewing .emacs .gnome2 .ICEauthority .nautilus .scim .Xauthority
    .bash_logout Desktop .gconf .gnome2_private .kde p8202632_10205_Linux-x86-64.zip .Trash .zshrc
    3、进入.vnc目录,找到xstartup可执行文件,用vi 编辑器打开
    [oracle@localhost ~]$ cd .vnc/
    [oracle@localhost .vnc]$ ls
    localhost.localdomain:2.log localhost.localdomain:2.pid passwd xstartup
    [oracle@localhost .vnc]$ vi xstartup
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    # unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc ---去掉前面的#号即可 --保存退出
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    twm &
    ~
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    "xstartup" 12L, 333C 已写入
    [oracle@localhost .vnc]$ vncserver
    New 'localhost.localdomain:3 (oracle)' desktop is localhost.localdomain:3
    Starting applications specified in /home/oracle/.vnc/xstartup
    Log file is /home/oracle/.vnc/localhost.localdomain:3.log
    4、清除刚才创建的vnc虚拟终端
    [oracle@localhost .vnc]$ vncserver -kill :1
    Can't find file /home/oracle/.vnc/localhost.localdomain:1.pid
    You'll have to kill the Xvnc process manually
    [oracle@localhost .vnc]$ vncserver -kill :2
    Killing Xvnc process ID 11889
    [oracle@localhost .vnc]$ vncserver -kill :3
    Killing Xvnc process ID 11945
    [oracle@localhost .vnc]$ vncserver -kill :4
    Can't find file /home/oracle/.vnc/localhost.localdomain:4.pid
    You'll have to kill the Xvnc process manually
    5、重新建立新的vnc虚拟终端
    [oracle@localhost .vnc]$ vncserver
    New 'localhost.localdomain:2 (oracle)' desktop is localhost.localdomain:2
    Starting applications specified in /home/oracle/.vnc/xstartup
    Log file is /home/oracle/.vnc/localhost.localdomain:2.log --该终端号为 :2
    6、在windows客户端用RealVNC软件中的Run VNC Viewer客户端连接。
    7、在Run VNC Viewer 只需输入linux服务器的地址和刚才生成的终端号:2
    格式:192.168.1.56:2
    8、输入刚才配置vnc服务的时候配的即可登录linux服务器图形界面。
    如果是本地安装的话执行下面的步骤
    用root用户登录
    [root@weblogic28 ~]#xhost + 让任何用户都是启用图形界面
    切换到oracle用户
    [root@weblogic28 ~]su - oracle
    [oracle@localhost ~]$ cd /database
    [oracle@weblogic28 database]$./runInstaller
    设置虚拟机的IP地址让主机可以访问虚拟机
    1、     NAT方式
    1.1     右键单击主机任务栏上的网络连接图标,选择打开网络连接页面
    1.2     启动”VMware Network Adapter VMnet8” 和 “VMware Network Adapter VMnet1”这两个连接
    1.3     右键单击“本地连接”,选择属性,打开”本地连接属性”对话框,选择”高级”标签,打开高级标签页面,选中选项”允许其它网络用户通过此计算机的internet连接来连接”,然后在”家庭网络连接”下拉列表中选择VMware Network Adapter VMnet8。
    1.4     在虚拟机上右键单击你要设置的虚拟机选“setting”(因为有的不止虚拟一台),打开”Hardware”标签页,单击”device”下的ethernet,此时在右边选中NAT:Used to share the host’s IP address. 然后点击确定。
    1.5     打开虚拟机上的Edit菜单,选择virtual network settings打开virtual network editor页面,先打开automatic bridging标签页,关闭automagic bridging,点击应用;再打开DHCP标签页,启动DHCP服务,然后点击应用;最后打开NAT标签页,启动NAT服务,然后点击应用;点击确定后退出
    1.9     启动虚拟机中的系统。
    1.10     设置虚拟机中的系统的IP地址为192.168.100.200,默认网关为192.168.100.1 (VMware Network Adapter VMnet8的IP地址),DNS服务器设置和主机中的DNS服务器一致。
    1.11     重新加载网络参数或者重新启动虚拟机中的系统。
    1.12设置静态IP地址.
    (1).命令行设置(该方式只是临时设置,系统重启后失效)
    [1].设置IP和掩码
    ifconfig 接口名(如eth0) IP地址 netmask 子网掩码
    [2].设置网关
    route add default gw 默认网关
    [3].设置DNS服务器地址
    echo "nameserver DNS服务器地址">/etc/resolv.conf
    实例:假设设置eth0的IP:192.168.1.100,DNS:192.168.1.12
    ifconfig eth0 192.168.100.200 netmask 255.255.255.0
    route add default gw 192.168.100.1
    echo "nameserver=192.168.1.12">/etc/resolv.conf
    (2).修改文件来实现配置网络(需要重启网络接口重启后IP不会改变)
    [1].修改IP地址,文件:/etc/sysconfig/network-scripts/ifcfg-接口名
    这里假设网络接口名为eth0.
    vi /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0 (注:这里填的是网络接口名)
    BOOTPROTO=static
    ONBOOT=yes (注:是否随系统启动)
    IPADDR=192.168.100.200(注:这里填写的是IP地址)
    PREFIX=24 (注:这里填写的是掩码的长度)
    NETMASK=255.255.255.0
    GATEWAY=192.168.100.1( 注:这里写的是网关)就是VMware Network Adapter VMnet8的IP地址
    [2].修改DNS
    echo "nameserver DNS服务器地址">/etc/resolv.conf
    [3].重启网络接口(假设为eth0)
    ifup eth0(注:这里写的是接口名)
    关闭linux防火墙
    (1) 重启后永久性生效:
    开启:chkconfig iptables on
    关闭:chkconfig iptables off
    (2) 即时生效,重启后失效:
    开启:service iptables start
    关闭:service iptables stop
    linux下Oracle自动启动与停止
    1.修改Oracle系统配置文件/etc/oratab
    /etc/oratab 格式为: SID:ORACLE_HOME:AUTO
    把AUTO域设置为Y(大写),只有这样,oracle 自带的dbstart和dbshut才能够发挥作用。我的为:
    $ORACLE_SID:$ORACLE_HOME:Y
    这儿的ORACLE_SID和ORACLE_HOME是oracle用户下的环境变量,在不同的电脑上有不同的值.当你打开/etc/oratab的时候,修改一下就行了.
    2.编写服务脚本
    在/etc/rc.d/init.d目录下创建oracle文件作为启动脚本,内容如下:容如下:
    #!/bin/sh
    #chkconfig: 2345
    #description:oracle_orcl
    # /etc/rc.d/init.d/oracle_orcl
    # auto start database orcl instance
    #set oracle env
    export ORACLE_BASE=/u01/app/oracle
    export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
    export PATH=$PATH:$ORACLE_HOME/bin
    export ORACLE_SID=orcl
    ORACLE_USER=oracle
    #start or stop script
    case $1 in
    start)
    su - "$ORACLE_USER"<<EOO
    lsnrctl start LISTENER
    sqlplus /nolog<<EOS
    connect /as sysdba
    startup
    EOS
    EOO
    stop)
    su - "$ORACLE_USER"<<EOO
    lsnrctl stop LISTENER
    sqlplus /nolog<<EOS
    connect /as sysdba
    shutdown immediate
    EOS
    EOO
    echo "Usage: $0 {start|stop}"
    esac
    在oracle用户下输入如上的内容,然后保存退出,由于是启动脚本,需要执行权限;执行命令chmod a+x oracle授予oracle执行权限.
    3.建立服务连接
    ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc2.d/S99oracle
    ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc3.d/S99oracle
    ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc5.d/S99oracle
    ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc0.d/K01oracle
    ln -s /etc/rc.d/init.d/oracle /etc/rc.d/rc6.d/K01oracle
    或可以通过执行以下命令来实现
    chkconfig --add oracle
    chkconfig命令运行成功后,在rc2.d,rc3.d,rc4.d,rc5.d下面建立了S99oracle 连接文件,可以在系统启动的时候,运行脚本启动数据库。在rc0.d、rc1.d和rc6.d目录下面建立了K99oracle文件,用于在系统关闭的时候自动运行脚本关闭数据库。可以使用 chkconfig --list oracle 命令查看服务配置,关于chkconfig更多的用法,可以通过man chkconfig查看
    4.测试
    启动,运行命令:./oracle_linuxdb start
    关闭,执行命令:./oracle_linuxdb stop
    可以用sqlplus user/passward@tnsname来测试启动和关闭数据库是否成功。现在重新启动linux主机,看数据库是否自动启动了.
    这样主机就能访问虚拟机中的oracle数据库了

    其实运用Oracle Virtual Box + OEL会使安装数据库变得更加简便。

Maybe you are looking for