Resource Controls on Oracle Systems

The normal resource controls for the oracle user are pretty straight forward -- per the Oracle documentation even though it is hugely Solaris 10 deficient. (we are deploying on solaris 10 u8)
We are deploying a new data center with 2 and 3-node SFRAC clusters and we have an onsite Sun prof. services person that claims we also need to limit the user.root and default projects in the following manner (systems have 64gb memory):
projmod -sK "project.max-shm-memory=(priv,6GB,deny)" user.root
projmod -sK "project.max-sem-nsems=(priv,256,deny)" user.root
projmod -sK "project.max-sem-ids=(priv,100,deny)" user.root
projmod -sK "project.max-shm-ids=(priv,100,deny)" user.root
projmod -sK "project.max-shm-memory=(priv,6GB,deny)" default
projmod -sK "project.max-sem-nsems=(priv,256,deny)" default
projmod -sK "project.max-sem-ids=(priv,100,deny)" default
projmod -sK "project.max-shm-ids=(priv,100,deny)" default
Has anyone see this done anywhere? Even when I was working at oracle on some of the largest oracle databases in existence I never saw such settings being deployed on Solaris 10.
Can anyone point me to any hard documentation or similar resource?
Much thanks,
CC
Edited by: rhugga1 on Jan 21, 2010 7:10 AM

Yes the oracle documentation is wrong. I know how to set the oracle parameters.. As my OP states I was inquiring about limits set on the user.root and default projects
Since Solaris 10 update 4, these oracle kernel parameters ARE IGNORED COMPLETELY when set in /etc/system (not to mention some are deprecated) You can easily do an empirical test of this yourself since there is so much conflicting documentation out there, including some of Sun's docs.
Solaris 10 update 4 and later method:
projadd -c "Oracle" 'user.oracle'
projmod -s -K "process.max-file-descriptor=(priv,1024,deny)" 'user.oracle'
projmod -s -K "project.max-shm-memory=(privileged,25769803770,deny)" 'user.oracle'
projmod -s -K "project.max-shm-ids=(privileged,1024,deny)" 'user.oracle'
projmod -s -K "project.max-sem-ids=(privileged,1024,deny)" 'user.oracle'
projmod -s -K "process.max-sem-nsems=(privileged,1024,deny)" 'user.oracle'
But back to the OT, I've been told there are root project tweaks that don't really make sense to me and I've yet to find any viable documentation supporting this guys claim.
-CC

Similar Messages

  • What is the resource control corresponding to each kernel parameter

    Hi
    I am trying to prepare (i.e. tune) a Solaris 10 instance for an Oracle 10g install using a Solaris 10 project.
    I am new to using Solaris 10 project resource controls so I might get some of this totally wrong.
    I know all of the "old" kernel parameter names: what each represents and its' required value and I know some of the corresponding resource controls but not all of them.
    That is I do not know the resource control corresponding to each and all of the kernel parameters.
    e.g. I know:
    semsys:seminfo_semmsl == process.max-sem-nsems == The maximum number of sempahores that can be in one semaphore set
    shmsys:shminfo_shmmax == project.max-shm-memory == The maximum size(in bytes) of a single shared memory segment
    shmsys:shminfo_shmmni == project.max-shm-ids == The number of shared memory identifiers
    But I do not know, for example, what resource control corresponds to:
    semsys:seminfo_semmns == The number of semaphores in the system
    Is there a list somewhere of the resource control corresponding to each of the kernel parameters ?
    I know I can set some kernel parameters in /etc/system but that should only be used for system - wide kernel parameters, right ?
    I know there are project, process, task and zone classes of resource controls.
    Can a resource control of any and all of these types be set in a project ?
    Are zone resource controls equivalent to system-wide resource controls ?
    Are there corresponding resource controls to all kernel parameters e.g. such as noexec_user_stack ?
    I have set noexec_user_stack in /etc/system.
    And finally - just to be sure - using a project makes the resource control values permanent, right ?
    Thanks
    Brett.

    Hi;
    Please check below which could be helpful for your issue:
    Kernel setup for Solaris 10 using project files [ID 429191.1]
    Regard
    Helios

  • Solaris 10 zones - Resource Controls not persisting through reboot

    Local zone was rebooted, but somehow the resource controls are not well configured and the oracle database did not start up.
    The cat /etc/project shows this : The local zone has 10 gb. The oracle database was started manually with the startdb.sh, which conn /assysdba and issue a startup, adn also startups the listener.
    cat /etc/project
    system:0::::project.max-shm-memory=(privileged,8589934000,deny)
    user.root:1::::project.max-shm-memory=(privileged,8589934000,deny)
    noproject:2::::
    default:3::::project.max-shm-memory=(privileged,6442450944,deny)
    group.staff:10::::
    user.oracle:100::oracle::project.max-shm-memory=(privileged,8589934000,deny)
    group.dba:101::::project.max-sem-ids=(privileged,100,deny);project.max-shm-ids=(
    privileged,100,deny);project.max-shm-memory=(privileged,6442450944,deny)

    Nikolay, thank you for your reply.
    What I know is that the zone was rebooted saturday. sunady at 1:00 am the oracle database (I'am a Dba not sysadmin), perform coldbackup (veritas.) then Veritas call a unix script to starts the database.
    I run the script to starts the database manually sunday. Veritas could not open the database because of the Out of Memory.
    The box has 10 gb , the oracle user, the rot and system are configured to use 8 gb, the rest are configured to use less.
    I'am oracle user.
    id -p
    uid=100(oracle) gid=100(dba) projid=100(user.oracle)
    prctl -i process $$
    process: 8928: -ksh
    NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
    process.max-port-events
    privileged 65.5K - deny -
    system 2.15G max deny -
    process.max-msg-messages
    privileged 8.19K - deny -
    system 4.29G max deny -
    process.max-msg-qbytes
    privileged 64.0KB - deny -
    system 16.0EB max deny -
    process.max-sem-ops
    privileged 512 - deny -
    system 2.15G max deny -
    process.max-sem-nsems
    privileged 512 - deny -
    system 32.8K max deny -
    process.max-address-space
    privileged 16.0EB max deny -
    system 16.0EB max deny -
    process.max-file-descriptor
    basic 256 - deny 8928
    privileged 65.5K - deny -
    system 2.15G max deny -
    process.max-core-size
    privileged 8.00EB max deny -
    system 8.00EB max deny -
    process.max-stack-size
    basic 8.00MB - deny 8928
    privileged 8.00EB - deny -
    system 8.00EB max deny -
    process.max-data-size
    privileged 16.0EB max deny -
    system 16.0EB max deny -
    process.max-file-size
    privileged 8.00EB max deny,signal=XFSZ -
    system 8.00EB max deny -
    process.max-cpu-time
    privileged 18.4Es inf signal=XCPU -
    system 18.4Es inf none -
    task.max-cpu-time
    system 18.4Es inf none -
    task.max-lwps
    system 2.15G max deny -
    project.max-contracts
    privileged 10.0K - deny -
    project.max-device-locked-memory
    privileged 987MB - deny -
    project.max-locked-memory
    system 16.0EB max deny -
    project.max-port-ids
    privileged 8.19K - deny -
    project.max-shm-memory
    privileged 8.00GB - deny -
    project.max-shm-ids
    privileged 128 - deny -
    project.max-msg-ids
    privileged 128 - deny -
    project.max-sem-ids
    privileged 128 - deny -
    project.max-crypto-memory
    privileged 3.85GB - deny -
    project.max-tasks
    system 2.15G max deny -
    project.max-lwps
    system 2.15G max deny -
    project.cpu-cap
    system 4.29G inf deny -
    project.cpu-shares
    privileged 1 - none -
    zone.max-swap
    privileged 20.0GB - deny -
    zone.max-locked-memory
    system 16.0EB max deny -
    zone.max-shm-memory
    system 16.0EB max deny -
    zone.max-shm-ids
    system 16.8M max deny -
    zone.max-sem-ids
    system 16.8M max deny -
    zone.max-msg-ids
    system 16.8M max deny -
    zone.max-lwps
    system 2.15G max deny -
    zone.cpu-cap
    system 4.29G inf deny -
    zone.cpu-shares
    privileged 1 - none -
    Print configured reso
    urce control
    ksh: Print: not found

  • Solaris 10 Resource Control

    When utilizing Solaris 10 Resource Control, should one use "user.root", "user.oracle" or "oracle" for the project identifier? Does it really make a difference?
    For example,
    I. projadd -U oracle -K "project.max-shm-memory=(priv,2048MB,deny)" user.oracle
    II. projadd -U oracle -K "project.max-shm-memory=(priv,2048MB,deny)" user.root
    III. projadd -U oracle -K "project.max-shm-memory=(priv,2048MB,deny)" oracle
    I realize the Oracle Install documentation indicates "user.root", but I've seen other indications of either "user.oracle" or "oracle".

    thanks buddy. I was in this same tricky situation. and ur post solved my prblem.
    Is this a bug with solaris 10.
    Later i discovered.. on Oracle documentation that.. there r sum parameters that needed to be taken care while pre-installation of Oracle binaries.
    Here is the excerpts.
    The Oracle installer recognizes kernel parameters set using this method, but it is now deprecated in favour of resource control projects, explained below.
    As the root user, issue the following command.
    projadd oracle
    Append the following line to the "/etc/user_attr" file.
    oracle::::project=oracle
    If you've performed a default installation, it is likely that the only kernel parameter you need to alter is "max-shm-memory". To check the current value issue the following command.
    # prctl -n project.max-shm-memory -i project oracle
    project: 100: oracle
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
    project.max-shm-memory
            privileged       254MB      -   deny
            system          16.0EB    max   deny     
    To reset this value, make sure at least one session is logged in as the oracle user, then from the root user issue the following commands.
    # prctl -n project.max-shm-memory -v 4gb -r -i project oracle
    # projmod -s -K "project.max-shm-memory=(priv,4gb,deny)" oracle
    The first dynamically resets the value, while the second makes changes to the "/etc/project" file so the value is persistent between reboots.
    # cat /etc/project
    system:0::::
    user.root:1::::
    noproject:2::::
    default:3::::
    group.staff:10::::
    oracle:100::::project.max-shm-memory=(priv,4294967296,deny)
    The Oracle installer seems incapable of recognising kernel parameter set using resource control projects, but if you ignore the warnings the installation completes successfully.Even this method works.
    Regards
    Monu Koshy

  • Using VISA Resource control with Windows 7 64-bit

    Hi.
    My company recently upgraded our laptops, and I'm now working on Windows 7 64-bit rather than Windows XP 32-bit.  I reinstalled LabVIEW 2009 Base Package, trusting that the Windows 7 64-bit OS would be able to handle LabVIEW 2009 32-bit without problems.  But when trying to run our test system, the VISA Resource control doesn't work.
    We use it to get a list of the available COM (RS232) ports on the computer.  But now the list comes up blank.  The only option that comes up in the list, is the text "Refresh".  But nothing happens when I press it.  Is this a bug in LabVIEW?  I've installed the latest patch I found, so now I'm running LabVIEW v9.0f3 (32-bit).
    Thanks alot for any and all assistance!
    Solved!
    Go to Solution.

    Sorry for not replying to you earlier.  I've been busy on other projects.
    I'm not sure what you refer to with MAX, but I'm able to access the com ports using other tools/loggers.  So it's not an issue with Windows 7 itself.  But it seems logical that the problem would have something to do with running 32-bit drivers on a 64-bit OS.  Referring to this list from NI (http://digital.ni.com/public.nsf/allkb/71E9408E6DEAD76C8625760B006B6F98), I'm downloading the 64-bit installer now.
    But if I understand it correctly, you cannot run applications from a 64-bit Application Builder on a 32-bit OS.  So basically you need the Application Builder installed on both a 32-bit and 64-bit OS to have all bases covered.  But in the FAQ, it's asked if it's possible to have both 32-bit and 64-bit LabVIEW 2009 installed on the same 64-bit OS.  Why would this be wanted?  If you cannot use the 32-bit Application Builder, and you cannot trust that the 32-bit LabVIEW runs successfully (i.e. driver issues etc.), why would you want to have a 32-bit installation on a 64-bit OS?

  • Resource control assignment failed for project

    I've setup a new project (we run sap), and keep getting the following msg
    pam_unix_cred: project.max-sem-ids resource control assignment failed for
    project "PAB"
    I know you can get this sort of msg if you have wrong syntax in your project, but it all looks well to me. Any ideas gratefully received. cheers Lou
    /etc/project >
    PAB:1000:SAP System PAB:orapab,pabadm::
    process.max-sem-nsems=(priv,2048,deny);project.max-sem-ids=(priv,1024,deny);project.max-shm-i
    ds=(priv,256,deny);project.max-shm-memory=(priv,18446744073709551615,deny)

    Hi
    The original entries were created with projadd.
    I've just done a projdel and another projadd (as below) and watching out for error msgs - will post again when I get the error msgs - cheers Lou
    root@sappab # projadd -p 1000 -c "SAP System PAB" -U pabadm,orapab \
    root@sappab > -K "project.max-sem-ids=(priv,1024,deny)" \
    root@sappab > -K "process.max-sem-nsems=(priv,2048,deny)" \
    root@sappab > -K "project.max-shm-ids=(priv,256,deny)" \
    root@sappab > -K "project.max-shm-memory=(priv,18446744073709551615,deny)" \
    root@sappab > PAB
    root@sappab # more /etc/project
    system:0::::
    user.root:1::::
    noproject:2::::
    default:3::::
    group.staff:10::::
    PAB:1000:SAP System PAB:orapab,pabadm::process.max-sem-nsems=(priv,2048,deny);project.max-sem-ids=(priv,1024,deny);project.max-shm-i
    ds=(priv,256,deny);project.max-shm-memory=(priv,18446744073709551615,deny)

  • Inference control with oracle

    Hi,
    I need for my master thesis a possibility to realize inference control with oracle.
    For example exist an instance R like
    R   |   A    B    C
        |  a1   b1   c1
        |  a2   b1   c2
    and a secrecy such *(exists X) R(a1, b1, X)*. With VPD under column hiding can defined this secrecy so that the data combination *(A:a1, B:b1)* be hidden from the instance:
    R   |  A    B    C
        |            c1
        |  a2  b1   c2
    The Problem is that a safe query like *(exists X)(exists Y) R(a1, X, Y)* was not answered, when the user makes a query
    select A from R where A=a1;
    Cause this query is a safe query with respect to the secrecy, the answer must not be hidden.
    Safe means
    *(exists X)(exists Y) R(a1, X, Y) NOT MODELS OF (exists X) R(a1, b1, X)*.
    How can I avoid this.
    I tried to avoid that whit using "query rewriting" and "materialized view", but that was not successfull, because oracle doesn't rewrite the simple (without Aggregates and Joins) queries.
    It will be greate when someone has an idea!
    Thanks

    As curious as I always am, I was able to discover my XE database from the GC 10.1.0.4 last month. I did this because I asked myself the same question. When there is time, I normally will try everything that says "Not supported" or "Not compartible" to prove it right or wrong. So give it a go, but don't post errors from it here :-). I have not tried it for GC 10.2.0.2, but it worked on 10.1.0.4 (hopefully 10.1.0.3).
    Remember, XE has all the features of EE, but a cutdown version. It has an Oracle Service and a Listener on a port, so the agent will pick them up. I have tried all possible things and tools (Forms, Reports, Designer Repository, Jdeveloper, SQL Developer, ODBC, JDBC etc) on XE to break it, but it works like EE. The only difference is when you hit the max allowed 4GB (excluding 1GB system) and I proved the limit right by kicking of a data load into a table using a cursor until it hit the maximum 4GB limit error.

  • Setting Resource limits for Oracle user in 11gR2

    HI Friends,
    I am using Oracle Database 11g R2 on windows.
    My Application connects to the database using a schema (user1). Some times the application user sessions makes the Database usage / CPU/ IO high and affecting the performance of the Database.
    I would like to set some Limits on the Resource usage (Database and System resources) for those Application user schema (user1) to avoid the bottleneck on the Database and Server without affecting the usage of the Application on Transactions.
    How can i achieve it?
    Regards,
    DB

    839396 wrote:
    HI Friends,
    I am using Oracle Database 11g R2 on windows.
    My Application connects to the database using a schema (user1). Some times the application user sessions makes the Database usage / CPU/ IO high and affecting the performance of the Database.
    I would like to set some Limits on the Resource usage (Database and System resources) for those Application user schema (user1) to avoid the bottleneck on the Database and Server without affecting the usage of the Application on Transactions.
    How can i achieve it?
    Regards,
    DBis application 3-tier like below?
    EndUser<=>browser<=>WebServer<=>ApplicationServer<=>DatabaseServer

  • Embedded License Resource Kit for Oracle Application Server 10g

    Hi,
    I work for a company and we are an Oracle partner. We would like to deliver our flagship product with Oracle Database and Application Server (10g) embedded.
    According to an Oracle press release back in october 2003, Embedded License Resource Kits for Oracle Database and Oracle Application Server are available through the Oracle Partner Network (http://www.oracle.com/corporate/press/2484668.html)
    I found a kit for Oracle Database through OPN but was not able to find one for Oracle Application Server 10g.
    Does such a kit still exist for Oracle Application Server, and if yes where can I download it?

    Go to MyOracleSupport/Metalink.
    Click patches and Updates on the top left bar. Download the patches.
    Each patch comes with its readme.txt. Do read it. It shows you how to install the patch. it also gives syntax with example for various scenarios of how to install it, or remove a patch either. In most of the patches, Installing a patch again does not hurt your system.
    It's a good practice to keep db inventory clean before attempting to install the patch because otherwise the patch installation will fail.
    hope that helps!
    AMN

  • Zone Resource Control example website

    G'Day folks,
    I've began work on a website to list examples of setting zone resource controls (processor sets, FSS, ...).
    http://www.brendangregg.com/zones.html
    Now before I get carried away, does anyone think that maybe I shouldn't - if so I will take it offline no problem.
    Just checking I dont get replies like,
    "please don't document zones as it's all about to change", or something like that ...
    PS. I was pretty happy to see FSS work - that's really cool! :-)
    thanks,
    Brendan Gregg
    [Sydney, Australia]

    G'Day Gary,
    Thanks for your comments!
    Here are some corrections/additions:
    The best way to check if pools are enabled is to run
    pooladm and examine the output. poold may not be
    running and pools may still be active, so performing
    a pgrep for poold isn't conclusive.Yes, good point.
    In commands 2, you don't need the "final pooladm -c".
    The poolcfg -df command will have already done
    e this.The final pooladm -c didn't make sense the first time I encountered it, so I had made pretty sure that it was necessary. I'll redo my checks and update the site. Without it, I'm only using poolcfg to make changes, and the man page for poolcfg has:
    # man poolcfg
         If you use the -d option,
         the modifications occur to the kernel state. Actual  activa-
         tion  of  the  resulting configuration is achieved by way of
         the pooladm(1M) command.It seems to imply a pooladm command is necessary for activation (I used a pooladm -c).
    In Resources CPU1 it may be worth mentioning that you
    can immediately modify pool bindings for zones if you
    use poolbind.
    e.g.
    /usr/sbin/poolbind -p work1-pool -i zoneid workzone1thanks, I hadn't seen this before!
    At the end of Resource CPU 2. It isn't poold which
    decides how to allocate CPUs when a configuration is
    applied to a system using pooladm -c. This work is
    done inside libpool (3LIB) by the pool_conf_commit
    API.Ok, I haven't seen documentation on what specifically happens after typing pooladm -c. The documentation such as the poold man page draws a lot of attention to poold:
    # man poold
         poold periodically examines  the  load  on  the  system  and
         decides whether intervention is required to maintain optimal
         system performance with  respect  to  resource  consumption.
         poold also responds to externally initiated (with respect to
         poold) changes of either resource  configuration  or  objec-
         tives.
         If intervention is required, poold  attempts  to  reallocate
         the  available  resources  to ensure that performance objec-So a change in resource configuration sounds like it means "pooladm -c", and poold is responding.
    I'm not sure you meant pool_conf_commit, the man page describes it as writing the config to permanent storage - not triggering an allocation of CPUs.
    At my work blog, I have various hints, tips and
    tricks for Solaris Resource Pools. If you want to add
    a link to my blog (where I try and focus on Solaris
    Resource Management issues) feel free. It's at:
    http://blogs.sun.com/garypen
    Great, I've linked it already, and uploaded a new version (and I imagine I'll upload more versions as I learn more about resource controls).
    thanks,
    Brendan

  • Recovering from oracle system files dead

    I have one machine with 2 hard disks. One with oracle system files and the oher one with my database files (Data files, control files and redo log files)
    Can I just reinstall another oracle base and attach the old database somehow.
    Thanks a lot in advance.

    If you mean that you have lost the disk storing ORACLE_HOME, yes this should work but you need to make sure:
    - to reinstall exactly the same Oracle patch set version (10.2.0.4 for example) for the same installation type (standard edition/entreprise edition - 32bit or 64bit)
    - you need to recreate some configuration files if you have no backup like init file (pfile/spfile), password file, listener.ora and if these files were located in default location.
    Edited by: P. Forstmann on 25 janv. 2010 19:53

  • ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75

    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    Scenario:
    I am having difficulty getting ODBC connection between Oracle OWB app with an 11gR2 DB (running on a VirtualBox Linux) and SQL Server 2008 running directly on the host. (Windows 8)
    I am trying to take a SQL Server 2008 feed into Oracle Ware house Builder, and think(!) I have read everything and configured it in accordance (but I presume not given 3 days of failed attempts to fix it). I have also read several blogs, hence there might be a few more settings in the configuration files than the formal documentation says, but these have come from blogs that have “Solved” problems for other similar situations.
    The environments:
    HOST:
    Name: RESOLVEIT-PC
    IP: 192.168.1.80
    Windows 8 (64bit) , with system DSN ODBC connection ACME_POS created with 32 bit ODBC set up (This setting still shows up fine in the 64 bit ODBC).
    GUEST VM:
    Name: OraDBSvr.com
    GUES fixed IP Address: 192.1.200
    Oracle VirtualBox (4.2.16)
    Oracle Redhat Linux 6 (x86)
    Oracle 11gR2 Enterprise Edition (11.2.0.1.0)
    ODBC: Freetds driver
    Configuration files:
    initacmepos.ora
    HS_FDS_CONNECT_INFO = 192.168.1.80/SQLEXPRESS/ACME_POS
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SUPPORT_STATISTICS=FALSE
    HS_RPC_FETCH_REBLOCKING= OFF
    HS_FDS_FETCH_ROWS = 1
    HS_FDS_SHAREABLE_NAME = /usr/local/lib/libtdsodbc.so
    set ODBCINI=/opt/odbc/odbc.ini
    # set <envvar>=<value>
    odbc.ini
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    odbcinst.ini
    [PostgreSQL]
    Description                        = ODBC for PostgreSQL
    Driver                   = /usr/lib/psqlodbc.so
    Setup                    = /usr/lib/libodbcpsqlS.so
    Driver64                              = /usr/lib64/psqlodbc.so
    Setup64                              = /usr/lib64/libodbcpsqlS.so
    FileUsage                           = 1
    [MySQL]
    Description                        = ODBC for MySQL
    Driver                   = /usr/lib/libmyodbc5.so
    Setup                    = /usr/lib/libodbcmyS.so
    Driver64                              = /usr/lib64/libmyodbc5.so
    Setup64                              = /usr/lib64/libodbcmyS.so
    FileUsage                           = 1
    [FreeTDS]
    Discription             = TDS driver (Sybase / MS SQL)
    Driver                           = /usr/local/lib/libtdsodbc.so
    # Setup                         = /usr/local/lib/libtdsS.so
    FileUsage                           = 1
    CPTimeout               =
    CPReuse                 =
    [oracle@oraDBsvr etc]$
    freetds.conf
    #   $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
    # This file is installed by FreeTDS if no file by the same
    # name is found in the installation directory. 
    # For information about the layout of this file and its settings,
    # see the freetds.conf manpage "man freetds.conf". 
    # Global settings are overridden by those in a database
    # server specific section
    [global]
            # TDS protocol version
    ;              tds version = 4.2
                   # Whether to write a TDSDUMP file for diagnostic purposes
                   # (setting this to /tmp is insecure on a multi-user system)
    ;              dump file = /tmp/freetds.log
    ;              debug flags = 0xffff
                   # Command and connection timeouts
    ;              timeout = 10
    ;              connect timeout = 10
                   # If you get out-of-memory errors, it may mean that your client
                   # is trying to allocate a huge buffer for a TEXT field.
                   # Try setting 'text size' to a more reasonable limit
                   text size = 64512
    # A typical Sybase server
    [egServer50]
                   host = symachine.domain.com
                   port = 5000
                   tds version = 5.0
    # A typical Microsoft server
    [ACME_POS]
      host = 192.168.1.80
      port = 60801                                # also tried 1433
      instance = SQLEXPRESS
      tds version = 8.0
      client charset = UTF-8
    tsql -LH 192.168.1.80
         ServerName RESOLVEIT-PC
       InstanceName SQLEXPRESS
        IsClustered No
            Version 10.50.4000.0
                tcp 60801
                 np \\RESOLVEIT-PC\pipe\MSSQL$SQLEXPRESS\sql\query
                via RESOLVEIT-PC,0:1433
    Oracle listener:
    [oracle@oraDBsvr log]$ cat /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = acmepos)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = dg4odbc)
    (HS = OK)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oraDBsvr)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    [oracle@oraDBsvr log]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 16-SEP-2013 13:57:41
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oraDBsvr)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                16-SEP-2013 13:50:34
    Uptime                    0 days 0 hr. 7 min. 7 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/oraDBsvr/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oraDBsvr)(PORT=1521)))
    Services Summary...
    Service "acmepos" has 1 instance(s).
    Instance "acmepos", status UNKNOWN, has 1 handler(s) for this service...
    Service "dw" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    Service "dwXDB" has 1 instance(s).
    Instance "dw", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Oracle tnsnames.ora
    [oracle@oraDBsvr admin]$ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    dw =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dw)
    acmepos  =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))
    (CONNECT_DATA=(SID=acmepos)
    (HS=OK)
    Oracle sqlnet.ora
    [oracle@oraDBsvr admin]$ cat sqlnet.ora
    # sqlnet.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    ADR_BASE = /u01/app/oracle
    I can connect from the linux server to SQL Server, and query the database:
    [oracle@oraDBsvr etc]$ tsql -S acme_pos -U acme_dw_user -P acme1234
    locale is "en_US.utf8"
    locale charset is "UTF-8"
    using default charset "UTF-8"
    1> select last_name from dbo.employees;
    2> go
    last_name
    Davolio
    Fuller
    Leverling
    Peacock
    Buchanan
    Suyama
    King
    Callahan
    Dodsworth
    (9 rows affected)
    1>
    However, I can’t get a response through Oracle OWB , and I get:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line from OWB_75
    In the hs log file I get:
    [oracle@oraDBsvr log]$ cat acmepos_agt_3821.trc
    Oracle Corporation --- MONDAY    SEP 16 2013 13:51:22.170
    Heterogeneous Agent Release
    11.2.0.1.0
    HS Gateway:  NULL connection context at exit
    [oracle@oraDBsvr log]$
    I am really stuck now and going round in circles and can’t see the wood for trees! Can anyone please help?!!
    Many Thanks.
    Rafe.

    Let us rewrite your ODBC DSN a little bit... Your current odbc.ini looks like:
    [ACME_POS]
    Driver     = FreeTDS
    Description = ODBC Connection via FreeTDS
    Trace       = 1
    Servername  = 192.168.1.80
    Database    = dbo
    Let us change it a little bit so that we only need one config file - no odbcinst.ini nor freetds.conf file anymore:
    [ACME_POS]
    Driver =/usr/local/lib/libtdsodbc.so
    Server = 192.168.1.80
    Database
    = dbo     ####  I have some doubts that you have a SQL Server database called dbo - one database that always exists is master - so as a test use master here or get the real database name of the SQL Server database you want to connect
    Port = 60801 ## make sure it really is the correct port - best would be to check on the SQL server and then try telnet <ip> <port> if you can connect to the SQL server
    TDS_Version = 8.0
    QuotedId=YES
    Especially the last 2 parameters are mandatory. TDS_Version specifies the TDS Version you have to use to connect to the SQL Server and QuotedID is required for DG4ODBC as it surrounds objevt names by double quotes.
    What happens now when you try to connect with for example isql - the ODBC test utility shipped with the ODBC Driver manager?
    In addition, could you please do me another favour and check the word size of DG4ODBC and the ODBC Driver Manager as well as the ODBC Driver - just execute:
    file /u01/app/oracle/product/11.2.0/dbhome_1/bin/dg4odbc
    file /usr/local/lib/libtdsodbc.so
    file < the patch to your libodbc.so library>/libodbc.so
    and post the output.

  • Business System or Business Service for ORACLE system

    Hi all
    We are creating a configuration scenario which includes a oracle database as receiver .Please clarify me whether to create a Business System or Business Service for the oracle system.
    Full Points will be awarded
    Thanks and Regards
    Uday

    Hi,
    We use Business system when we know the SLD Details(PRD,SWCV & TS)
    We will use Business Service when we dont know the SLD details and we know Partially
    We can create the Business system in SLD
    We can create the Business service in ID itself
    Difference between Business System and Business Service
    So Decide your self now to create the Business system OR Business Service
    REgards
    Seshagiri

  • ORA-28500: connection from ORACLE to a non-Oracle system

    Hi, I need to connect to a OWB mysql database, but when making a query in sql plus sends me this error.
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    listener.ora
    # listener.ora Network Configuration File: C:\oraclebi\db\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
         (SID_NAME = PLSExtProc)
         (ORACLE_HOME = C:\oraclebi\db)
         (PROGRAM = extproc)
         (SID_DESC =
         (SID_NAME = MYSQL)
         (ORACLE_HOME = C:\oraclebi\db)
         (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\oraclebi\db\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    BISE1DB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bise1db)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    OTCL_MORDOR =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.31.210)(PORT = 1620))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEST)
    MYSQL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = bi.oratechla.com)(PORT = 1521))
    (CONNECT_DATA =
    (SID = MYSQL))
    (HS = OK)
    inithMYSQL.ora
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = MYSQL
    HS_FDS_TRACE_LEVEL = off
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    system dsn --> MYSQL
    databaselink
    CREATE PUBLIC DATABASE LINK mysqlink CONNECT TO "oracle" IDENTIFIED BY "oracle" using 'ejemplo';
    Database link created.
    select * from empleado@mysqlink;
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    or
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    tnsping
    C:\Documents and Settings\Administrator>tnsping MYSQL
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 06-AUG-2
    010 06:31:57
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oraclebi\db\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = bi.orate
    chla.com)(PORT = 1521)) (CONNECT_DATA = (SID = MYSQL)) (HS = OK))
    OK (30 msec)

    Use the setup failing with
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter
    <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from MYSQLINK
    There is a typo in the name of you gateway init file. You posted the content of inithMYSQL.ora but the naming is init<SID>.ora which is in your case initMYSQL.ora.
    In addition please keep in mind HSODBC has been desupported since 2008 and when starting a new configuration you should use the follow up product dg4odbc (Database Gateway for ODBC) V11.

  • Dblink oracle to postgres with dg4odbc | ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, i'm trying to create database link from a database Oracle 11g to PostgreSQL with DG4ODBC, and unixODBC
    my configured to /etc/odbc.ini
    [PostgreSQL]
    Description = Test to Postgres
    Driver = psqlodbc
    Trace = Yes
    TraceFile = /tmp/sql.log
    Database = danieldb
    Servername =
    UserName = SA
    Password = password
    Port = 5432
    Protocol = 6.4
    ReadOnly = No
    RowVersioning = No
    ShowSystemTables = No
    ShowOidColumn = No
    FakeOidIndex = No
    my configured to /etc/odbcinst.ini
    [ODBC]
    CommLog=1
    Debug=1
    FileUsage=1
    Pooling=No
    Trace=1
    [psqlodbc]
    Description=PostgreSQL ODBC driver
    Driver=/usr/lib64/psqlodbcw.so
    CommLog=1
    Debug=0
    FileUsage=1
    my configured to /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora
    HS_FDS_CONNECT_INFO = PostgreSQL
    HS_FDS_TRACE_LEVEL = 0
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so
    set ODBCINI=/etc/odbc.ini
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
    Listener =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
    SID_LIST_LISTENER =
            (SID_LIST =
                    (SID_DESC=
                            (SID_NAME=PostgreSQL)
                            (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)
                            (PROGRAM=dg4odbc)
                            (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib")
    my configured to /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora
    PostgreSQL=
            (DESCRIPTION =
                    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521))
                    (CONNECT_DATA =
                            (SID = PostgreSQL)
                    (HS = OK)
    i'm try to created public database link :
    CREATE PUBLIC DATABASE LINK "orapos" CONNECT TO "SA" IDENTIFIED BY "password" USING 'PostgreSQL';
    when i used tnsping
    [root@oracle-poc admin]# tnsping PostgreSQL
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 16-MAY-2013 20:34:19
    Copyright (c) 1997, 2011, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/xe/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))
    OK (0 msec)
    and last i try to use the database link :
    SQL> select * from "tabel2"@orapos
      2  ;
    select * from "tabel2"@orapos
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    Whats wrong with my configuration??
    Thank you and best regards,
    Daniel

    Mike,
    yes i've downloaded the ODBC driver manager..
    for HS_FDS_SHAREABLE_NAME i use /usr/lib/psqlodbc.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from ORAPOS
    for HS_FDS_SHAREABLE_NAME = /usr/lib64/psqlodbcw.so
    and i get this error when i call the db link(orpos)
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    c
    and when i used isql isql to call DNS(PostgreSQL) is success
    whats wrong with my config?
    about PostGres ODBC did you mean postgresql-odbc-08.04.0200-1.el6.x86_64 ??
    Thank you and best regards,
    Daniel

Maybe you are looking for

  • Can't find a movie I bought a while ago

    Bought it on one mac, viewed it on my iPhone. Then somehow, it's gone from both. I can't find it locally by searching the title name. I can't see any way to get it again from the iTunes store. Did I just flush $15 bucks down the toilet? If so, I'm re

  • Any wifi/3g Bidirectional sync ways instead of import/export documents ?

    Is there any way or any software for mac & ipad that will do bi-directional sync using 3G/Wi-Fi instead of importing/exporting for Excel  & Pages documents?

  • PHP inside the SAP VM Container ?

    I don't have deep knowledge of the PHP core, but I guess the PHP interpreter is also something like a VM. SAP is building a VM Container, where ABAP and Java VM's are running in, so wouldn't it be nice to also have PHP running in the SAP VM Container

  • VIP configuration in RAC

    Hi All, Please can I know which IP address is allocated to VIP in RAC. like for SCAN The IP addresses must be on the same subnet as your default public network in the cluster. Thanks

  • Error Message by generating pdf-based reports

    Hi, One new pdf-based form was developed for customer specific status report. The standard report only copied and modified. While executing the new status report it is giving the error message "File does not begin with % PDF-" Please let me now how t