Oracle Database Privilege

Hi,
I have been using Oracle database for few years whereby everything has been done by our vendor initially. So, I have no problem in creating table and granting access for viewing.
Now, this is the first time I install the Oracle DB (XE) and start everything from 0 and I really found that it is interesting. I have a of doubt after some trying. Hope that I can get the answer:
1.) I login as sys or dba to create new schema by using the command:
CREATE USER winnie IDENTIFIED BY winnie (As I understand Oracle Database automatically creates a schema when you create a user)
2.) I login as winnie and access to the winnie schema and create a table by using TOAD. I key in few records. When use the select * from mytable, there is an error message saying that the table or view is not existed. But if I use select * from winnie.mytable, then the select statement do return result. I really wonder, this is because if is the schema containing the table, If we omit schema, Oracle assumes the table is in your own schema. Then why I still have to reference the table by the schema name??
3.) When I try to create table by using the : create table employees as select * from otherschema.employee, the employees table is not created under the winnie schema. After checking by using select * from all_objects where object_name like 'EMP%', then only found that the table owner is SYS, WHY???? I have to use create table winnie.employees as select * from otherschema.employee then only the employees table will be successfully created in winnie schema.
4.) By default what are the privileges will be granted to a new schema???? for my case, I use - > grant dba to winnie, I even can't select the table that I create (login as winnie)
5.) I try to create another new schema name winwin, and create a table by using TOAD Create table menu, the table is successfully created, but yet it is not found under the table listing.
pls advise.
Wen Xi
Edited by: wen xi on Feb 23, 2009 8:16 AM

Please be careful not to get confused when using TOAD. TOAD sometimes behaves in a different manner to SQLPLUS. Below is an example.
Recently I found that a user doing a SELECT or DESC from a table on SQLPLUS received an error 'object does not exist' as the user did not have the SELECT privilege on that table.
When doing a DESC from TOAD however one could see the table columns. The reason for this is that the user had the SELECT ANY DICTIONARY privilege but not SELECT privilege on that table. The DESC command from TOAD was not the same as the DESC command from SQLPLUS. From SQLPLUS it returned an error saying object does not exist however TOAD created a query over the dictionary tables and having the SELECT ANY DICTIONARY privilege granted to the user, was able to display the columns.
The moral of the story is to use SQLPLUS as the standard if you want it to work across all platforms and instruments. TOAD does its own proprietary queries sometimes to diaplay results

Similar Messages

  • Oracle Database 10g Express Edition (ORA-01031: insufficient privileges)

    Hello,
    I am new to 10g Express. I am working on Windows XP and I have Oracle App Server and JDev install on my box. I just installed 10g Express. When I try to connect to the database but I get the following error msg:
    SQL> connect sys/admin as sysdba;
    ERROR: ORA-01031: insufficient privileges
    I am also not able to see the homepage either.
    Can some please help.
    Thanks
    etnot

    Are you saying you can only have one instance of an
    Oracle Database install if you are going to use
    Oracle XE?Yes.
    Oracle Database XE is free for usage with the following limitations:
    • Supports up to 4GB of user data (in addition to Oracle system data)
    • Single instance only of Oracle Database XE on any server
    • May be installed on a multiple CPU server, but only executes on one processor in any server
    • May be installed on a server with any amount of memory, but will only use up to 1GB RAM of available memory

  • Connect ORACLE database with sysdba privileges

    Hi Guru,
    I am connecting to my ORACLE database with my VB application.
    I have problem with connecting to the database with SYSDBA privileges. i.e it is not connecting to the database with SYSDBA privileges.
    If I connect my db from SQLPLUS. Its worked like this..
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> select Name from v$datafile;
    select Name from v$datafile
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> connect as sysdba;
    Enter user-name: user_1
    Enter password: ****
    Connected.
    SQL> select Name from v$datafile;
    NAME
    C:\NEW\ORADATA\ITPL\SYSTEM01.DBF
    C:\NEW\ORADATA\ITPL\UNDOTBS01.DBF
    C:\NEW\ORADATA\ITPL\CWMLITE01.DBF
    C:\NEW\ORADATA\ITPL\DRSYS01.DBF
    C:\NEW\ORADATA\ITPL\EXAMPLE01.DBF
    C:\NEW\ORADATA\ITPL\INDX01.DBF
    C:\NEW\ORADATA\ITPL\ODM01.DBF
    C:\NEW\ORADATA\ITPL\TOOLS01.DBF
    C:\NEW\ORADATA\ITPL\USERS01.DBF
    C:\NEW\ORADATA\ITPL\XDB01.DBF
    10 rows selected.
    SQL>
    Now in my VB application if I am using following string to connect the database.
    m_adoCnn.ConnectionString = Provider=MSDAORA;Password=pass;User ID=user_1;DBA Privilege=SYSDBA;Data Source=ITPL
    It will connect properly to the database but gives error while executing the query select Name from v$datafile;
    as,
    ORA-00942: table or view does not exist
    Can any body help me in this or provide me proper connection string.

    Hello,
    I am getting below error when i kust Clic k on Test Connection in SSMS:
    TITLE: Microsoft SQL Server Management Studio
    The test connection to the linked server failed.
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Cannot initialize the data source object of OLE DB provider "OraOLEDB.Oracle" for linked server "test".
    OLE DB provider "OraOLEDB.Oracle" for linked server "test" returned message "ORA-12154: TNS:could not resolve the connect identifier specified". (Microsoft SQL Server, Error: 7303)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.4000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476
    BUTTONS:
    OK
    Can you please guide is there any other setting i need to do after install Oracle Client ?
    Best Regards,
    Tushar Malvi

  • Sample Response File for Oracle Database 12c Standard Edition on Oracle Linux 6.4 -- working

    oracle@styles-and-artists-development-oracle database]$ cat response/db_install.rsp
    ## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.##
    ## Specify values for the variables listed below to customize     ##
    ## your installation.                                             ##
    ## Each variable is associated with a comment. The comment        ##
    ## can help to populate the variables with the appropriate        ##
    ## values.                                                        ##
    ## IMPORTANT NOTE: This file contains plain text passwords and    ##
    ## should be secured to have read permission only by oracle user  ##
    ## or db administrator who owns this installation.                ##
    # Do not change the following system generated value.
    oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v12.1.0
    # Specify the installation option.
    # It can be one of the following:
    #   - INSTALL_DB_SWONLY
    #   - INSTALL_DB_AND_CONFIG
    #   - UPGRADE_DB
    oracle.install.option=INSTALL_DB_AND_CONFIG
    # Specify the hostname of the system as set during the install. It can be used
    # to force the installation to use an alternative hostname rather than using the
    # first hostname found on the system. (e.g., for systems with multiple hostnames
    # and network interfaces)
    ORACLE_HOSTNAME=styles-and-artists-development-oracle
    # Specify the Unix group to be set for the inventory directory. 
    UNIX_GROUP_NAME=oracle
    # Specify the location which holds the inventory files.
    # This is an optional parameter if installing on
    # Windows based Operating System.
    INVENTORY_LOCATION=/home/oracle/oracleInventory
    # Specify the languages in which the components will be installed.            
    # en   : English                  ja   : Japanese                 
    # fr   : French                   ko   : Korean                   
    # ar   : Arabic                   es   : Latin American Spanish   
    # bn   : Bengali                  lv   : Latvian                  
    # pt_BR: Brazilian Portuguese     lt   : Lithuanian               
    # bg   : Bulgarian                ms   : Malay                    
    # fr_CA: Canadian French          es_MX: Mexican Spanish          
    # ca   : Catalan                  no   : Norwegian                
    # hr   : Croatian                 pl   : Polish                   
    # cs   : Czech                    pt   : Portuguese               
    # da   : Danish                   ro   : Romanian                 
    # nl   : Dutch                    ru   : Russian                  
    # ar_EG: Egyptian                 zh_CN: Simplified Chinese       
    # en_GB: English (Great Britain)  sk   : Slovak                   
    # et   : Estonian                 sl   : Slovenian                
    # fi   : Finnish                  es_ES: Spanish                  
    # de   : German                   sv   : Swedish                  
    # el   : Greek                    th   : Thai                     
    # iw   : Hebrew                   zh_TW: Traditional Chinese      
    # hu   : Hungarian                tr   : Turkish                  
    # is   : Icelandic                uk   : Ukrainian                
    # in   : Indonesian               vi   : Vietnamese               
    # it   : Italian                                                  
    # all_langs   : All languages
    # Specify value as the following to select any of the languages.
    # Example : SELECTED_LANGUAGES=en,fr,ja
    # Specify value as the following to select all the languages.
    # Example : SELECTED_LANGUAGES=all_langs 
    SELECTED_LANGUAGES=en
    # Specify the complete path of the Oracle Home.
    ORACLE_HOME=/extended2/oracleBase/db12c1
    # Specify the complete path of the Oracle Base.
    ORACLE_BASE=/extended2/oracleBase
    # Specify the installation edition of the component.                    
    # The value should contain only one of these choices.       
    #   - EE     : Enterprise Edition                               
    #   - SE     : Standard Edition                                 
    #   - SEONE  : Standard Edition One
    #   - PE     : Personal Edition (WINDOWS ONLY)
    oracle.install.db.InstallEdition=SE
    # PRIVILEGED OPERATING SYSTEM GROUPS                                          #
    # Provide values for the OS groups to which OSDBA and OSOPER privileges       #
    # needs to be granted. If the install is being performed as a member of the   #
    # group "dba", then that will be used unless specified otherwise below.       #
    # The value to be specified for OSDBA and OSOPER group is only for UNIX based #
    # Operating System.                                                           #
    # The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
    oracle.install.db.DBA_GROUP=osdba
    # The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
    # The value to be specified for OSOPER group is optional.
    oracle.install.db.OPER_GROUP=osoper
    # The BACKUPDBA_GROUP is the OS group which is to be granted OSBACKUPDBA privileges.
    oracle.install.db.BACKUPDBA_GROUP=bckdba
    # The DGDBA_GROUP is the OS group which is to be granted OSDGDBA privileges.
    oracle.install.db.DGDBA_GROUP=dbdba
    # The KMDBA_GROUP is the OS group which is to be granted OSKMDBA privileges.
    oracle.install.db.KMDBA_GROUP=kmdba
    #                               Grid Options                                  #
    # Specify the type of Real Application Cluster Database
    #   - ADMIN_MANAGED: Admin-Managed
    #   - POLICY_MANAGED: Policy-Managed
    # If left unspecified, default will be ADMIN_MANAGED
    oracle.install.db.rac.configurationType=
    # Value is required only if RAC database type is ADMIN_MANAGED
    # Specify the cluster node names selected during the installation.
    # Leaving it blank will result in install on local server only (Single Instance)
    # Example : oracle.install.db.CLUSTER_NODES=node1,node2
    oracle.install.db.CLUSTER_NODES=
    # This variable is used to enable or disable RAC One Node install.
    #   - true  : Value of RAC One Node service name is used.
    #   - false : Value of RAC One Node service name is not used.
    # If left blank, it will be assumed to be false.
    oracle.install.db.isRACOneInstall=
    # Value is required only if oracle.install.db.isRACOneInstall is true.
    # Specify the name for RAC One Node Service
    oracle.install.db.racOneServiceName=
    # Value is required only if RAC database type is POLICY_MANAGED
    # Specify a name for the new Server pool that will be configured
    # Example : oracle.install.db.rac.serverpoolName=pool1
    oracle.install.db.rac.serverpoolName=
    # Value is required only if RAC database type is POLICY_MANAGED
    # Specify a number as cardinality for the new Server pool that will be configured
    # Example : oracle.install.db.rac.serverpoolCardinality=2
    oracle.install.db.rac.serverpoolCardinality=
    #                        Database Configuration Options                       #
    # Specify the type of database to create.
    # It can be one of the following:
    #   - GENERAL_PURPOSE/TRANSACTION_PROCESSING                      
    #   - DATA_WAREHOUSE                               
    oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
    # Specify the Starter Database Global Database Name.
    oracle.install.db.config.starterdb.globalDBName=cbd
    # Specify the Starter Database SID.
    oracle.install.db.config.starterdb.SID=cdb1
    # Specify whether the database should be configured as a Container database.
    oracle.install.db.ConfigureAsContainerDB=true
    # Specify the  Pluggable Database name for the pluggable database in Container Database.
    oracle.install.db.config.PDBName=pdb1
    # Specify the Starter Database character set.
    #  One of the following
    #  AL32UTF8, WE8ISO8859P15, WE8MSWIN1252, EE8ISO8859P2,
    #  EE8MSWIN1250, NE8ISO8859P10, NEE8ISO8859P4, BLT8MSWIN1257,
    #  BLT8ISO8859P13, CL8ISO8859P5, CL8MSWIN1251, AR8ISO8859P6,
    #  AR8MSWIN1256, EL8ISO8859P7, EL8MSWIN1253, IW8ISO8859P8,
    #  IW8MSWIN1255, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE,
    #  KO16MSWIN949, ZHS16GBK, TH8TISASCII, ZHT32EUC, ZHT16MSWIN950,
    #  ZHT16HKSCS, WE8ISO8859P9, TR8MSWIN1254, VN8MSWIN1258
    oracle.install.db.config.starterdb.characterSet=AL32UTF8
    # This variable should be set to true if Automatic Memory Management
    # in Database is desired.
    # If Automatic Memory Management is not desired, and memory allocation
    # is to be done manually, then set it to false.
    oracle.install.db.config.starterdb.memoryOption=true
    # Specify the total memory allocation for the database. Value(in MB) should be
    # at least 256 MB, and should not exceed the total physical memory available
    # on the system.
    # Example: oracle.install.db.config.starterdb.memoryLimit=512
    oracle.install.db.config.starterdb.memoryLimit=512
    # This variable controls whether to load Example Schemas onto
    # the starter database or not.
    oracle.install.db.config.starterdb.installExampleSchemas=true
    # Passwords can be supplied for the following four schemas in the             #
    # starter database:                                                           #
    #   SYS                                                                       #
    #   SYSTEM                                                                    #
    #   DBSNMP (used by Enterprise Manager)                                       #
    # Same password can be used for all accounts (not recommended)                #
    # or different passwords for each account can be provided (recommended)       #
    # This variable holds the password that is to be used for all schemas in the
    # starter database.
    oracle.install.db.config.starterdb.password.ALL=CDBadmin12345#
    # Specify the SYS password for the starter database.
    oracle.install.db.config.starterdb.password.SYS=CBDsys12345#
    # Specify the SYSTEM password for the starter database.
    oracle.install.db.config.starterdb.password.SYSTEM=PDBsys12345#
    # Specify the DBSNMP password for the starter database.
    oracle.install.db.config.starterdb.password.DBSNMP=DBsnmp12345#
    # Specify the PDBADMIN password required for creation of Pluggable Database in the Container Database.
    oracle.install.db.config.starterdb.password.PDBADMIN=PDBadmin12345#
    # Specify the management option to use for managing the database.
    # Options are:
    # 1. CLOUD_CONTROL - If you want to manage your database with Enterprise Manager Cloud Control along with Database Express.
    # 2. DEFAULT   -If you want to manage your database using the default Database Express option.
    oracle.install.db.config.starterdb.managementOption=DEFAULT
    # Specify the OMS host to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.omsHost=
    # Specify the OMS port to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.omsPort=
    # Specify the EM Admin user name to use to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.emAdminUser=
    # Specify the EM Admin password to use to connect to Cloud Control.
    # Applicable only when oracle.install.db.config.starterdb.managementOption=CLOUD_CONTROL
    oracle.install.db.config.starterdb.emAdminPassword=
    # SPECIFY RECOVERY OPTIONS                                                    #
    # Recovery options for the database can be mentioned using the entries below  #
    # This variable is to be set to false if database recovery is not required. Else
    # this can be set to true.
    oracle.install.db.config.starterdb.enableRecovery=true
    # Specify the type of storage to use for the database.
    # It can be one of the following:
    #   - FILE_SYSTEM_STORAGE
    #   - ASM_STORAGE
    oracle.install.db.config.starterdb.storageType=FILE_SYSTEM_STORAGE
    # Specify the database file location which is a directory for datafiles, control
    # files, redo logs.        
    # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
    oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=/extended1/db/data
    # Specify the recovery location.
    # Applicable only when oracle.install.db.config.starterdb.storage=FILE_SYSTEM_STORAGE
    oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=/extended1/db/recovery
    # Specify the existing ASM disk groups to be used for storage.
    # Applicable only when oracle.install.db.config.starterdb.storageType=ASM_STORAGE
    oracle.install.db.config.asm.diskGroup=/dev/oracleasm
    # Specify the password for ASMSNMP user of the ASM instance.                
    # Applicable only when oracle.install.db.config.starterdb.storage=ASM_STORAGE
    oracle.install.db.config.asm.ASMSNMPPassword=ASMsnmp122345#
    # Specify the My Oracle Support Account Username.
    #  Example   : [email protected]
    MYORACLESUPPORT_USERNAME=
    # Specify the My Oracle Support Account Username password.
    # Example    : MYORACLESUPPORT_PASSWORD=password
    MYORACLESUPPORT_PASSWORD=
    # Specify whether to enable the user to set the password for
    # My Oracle Support credentials. The value can be either true or false.
    # If left blank it will be assumed to be false.
    # Example    : SECURITY_UPDATES_VIA_MYORACLESUPPORT=true
    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
    # Specify whether user doesn't want to configure Security Updates.
    # The value for this variable should be true if you don't want to configure
    # Security Updates, false otherwise.
    # The value can be either true or false. If left blank it will be assumed
    # to be false.
    # Example    : DECLINE_SECURITY_UPDATES=false
    DECLINE_SECURITY_UPDATES=flase
    # Specify the Proxy server name. Length should be greater than zero.
    # Example    : PROXY_HOST=proxy.domain.com
    PROXY_HOST=
    # Specify the proxy port number. Should be Numeric and atleast 2 chars.
    # Example    : PROXY_PORT=25
    PROXY_PORT=
    # Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
    # blank if your proxy server requires no authentication.
    # Example    : PROXY_USER=username
    PROXY_USER=
    # Specify the proxy password. Leave PROXY_USER and PROXY_PWD 
    # blank if your proxy server requires no authentication.
    # Example    : PROXY_PWD=password
    PROXY_PWD=
    # Specify the proxy realm.
    # Example    : PROXY_REALM=metalink
    PROXY_REALM=
    # Specify the Oracle Support Hub URL.
    # Example    : COLLECTOR_SUPPORTHUB_URL=https://orasupporthub.company.com:8080/
    COLLECTOR_SUPPORTHUB_URL=
    # Specify the auto-updates option. It can be one of the following:
    #   - MYORACLESUPPORT_DOWNLOAD
    #   - OFFLINE_UPDATES
    #   - SKIP_UPDATES
    oracle.installer.autoupdates.option=SKIP_UPDATES
    # In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
    # the updates are to be downloaded.
    # In case OFFLINE_UPDATES option is chosen, specify the location where the updates
    # are present.
    oracle.installer.autoupdates.downloadUpdatesLoc=
    # Specify the My Oracle Support Account Username which has the patches download privileges 
    # to be used for software updates.
    #  Example   : [email protected]
    AUTOUPDATES_MYORACLESUPPORT_USERNAME=
    # Specify the My Oracle Support Account Username password which has the patches download privileges 
    # to be used for software updates.
    # Example    : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
    AUTOUPDATES_MYORACLESUPPORT_PASSWORD=

    This is the simplest installation you can get, but if you want to do a fast response file based installation, there it is.

  • Retrieve data from a synonym in oracle database through db connect

    Hi Everyone,
    I have created certain synonym for some tables in oracle. I want to retrieve data from it through db connect but where through source system and then selecting database tables, only tables and views are available.
    Synonyms are not available to create data sources and retrieve the data from it. Why is it so. Is this a limitation of db connect.
    Can anyone please let me know about it.
    Thanks,
    Joshua.

    Hi,
    You want to import data from an external Oracle database into your BW 3.X. To do this, you can connect the external database to the BW 3.X release as a source system using the external database connect. BW 3.X here represents BW 3.0, BW 3.1 and BW 3.5 because in other (DB relevant) parts, all 3 versions are based on the same source code.
    General information
    The above function allows you to load data from an external Oracle database (not a BW database) into your BW 3.0 system.
    There may also be constellations which cannot be used directly through the DB Connect access. However, it should be possible to find an adequate, customer-specific solution for most of these scenarios.
    In such situations, the resulting work falls into the area of Consulting and cannot be handled via Support.
    Successful implementation of a connection requires corresponding expertise and experience in the use of the source database in the areas:
                    - Tools
                    - SQL syntax
                    - DB-specific functions
    Corresponding knowledge of the source application is also required to ensure that semantically relevant data arrives in the BW system.
    Procedure
    You should execute the following steps to connect the source system (Q) to the BW system (BW):
    Installing the client software on an BW application server
                         Of course, you only need to install the client software if you are using BW with a non-Oracle database.
                         Use the Oracle setup program on the database CD (runInstaller on Unix) to start the OracleInstaller. Follow the program instructions and the DB installation instructions to install the Oracle Client software on BW.
    Testing connection setup from BW to Q
                         After you install the client software on BW, try to set up a connection from BW to the server on Q. You may need to adjust the tnsnames.ora or sqlnet.ora files for this, to introduce the Oracle systems (to which contact should be made) to BW. You can test the connection by executing the command "tnsping QDB" on BW to check whether the client has established contact to the QDB database on the Q system.
    Creating a separate U user in Q
                         We recommend that you create a separate U user in Q for connection to BW. This means that authorization and administration questions can be solved centrally.
    Displaying data sources in Q for the U user
                         To provide U data for users other than U, you can create views on other user tables as user U:
                         CREATE OR REPLACE VIEW viewname AS
                           SELECT * FROM QDB.tablename
                         You may have to grant SELECT privileges to user U in the QDB schema:
                            GRANT select ON QDB.tablename TO U
                         Of course, you can also restrict or reformat data in the view arrangement (for example, change from internal date format into the SAP date format). JOIN operations using several tables are also available.
                         !!! Synonyms do not yet work!!!
                         Synonyms that you can create as described below are another option for providing a complete table for the user U:
                           CREATE SYNONYM synoname FOR QDB.tablename
                         !!! Synonyms do not (yet) work!!!
                         After you have displayed the require data for user U, you can simply use
                           SELECT * FROM <view or table>
                         on the Q system to check which data is returned.
                         You can now open a link to Q as user U in the BW system with SQLPLUS and check, using the same SELECT, whether this data is also seen in the Oracle client. If this is not the case, there is probably a connection problem.
    Creating a connection from BW to Q in BW
    Including data sources of user U user in Q in BW.
    Solution
    Supported BW, Basis and BW 3.0B database versions, Basis 6.20 Support Package 2 (or higher)
          Oracle 8.1 (or higher, see below)
    Possible problems
    - Synonyms do not (yet) work!
    Up to now, only tables and views have been used as data sources for the DB Connect from the R3 Basis. As soon as synonyms are also used in the Basis, you will be able to convert created views (or even replicated tables) to synonyms as a workaround.
    With Basis 6.40 at the earliest, therefore as of BW 3.5, you will also be able to use synonyms. Until then, the following will help:
      CREATE VIEW <view_on_synonym> AS SELECT * FROM <synonym>
    - The source DB must have at least the release version of the BW DB.
    Oracle only ensures the support of client-server links if the version of the client is not higher than that of the server. So if BW has Oracle version 8.1 and, as in the case of Dbconnect, is run as a client against the server of the source database, the source database must have at least release Oracle 8.1 or higher.
    Of course, you have the option to install the Oracle client software of a lower version and then use this for the DB connect. This is also the procedure used to work with a DB connect on external databases of other vendors.
    Furthermore, the implementation of the DBconnect function in BW uses SAP Basis functions. Specifications of Oracle 8.1 database catalogs are used here. The source database must therefore have at least Version 8.1.
    - Oracle Client Software Version
    If you want to connect from an Oracle BW DB to an Oracle source DB, for the DB connect you naturally use the client software that you already installed on each application server.
    If you want to connect from a non-Oracle BW DB to an Oracle source DB, check item 3 of note 521230 to see which Oracle client software version is released with your BW R3 kernel and use this version.
    - Date and time fields in Oracle and their conversion into SAP-compatible column formats
    Example with a DATE field:
    Since a SAP table does not have a DATE field (date values are NUMC(8) and time specifications are NUMC(6)), we will use the Oracle DBA_TABLES system table as an example.
        SQL> desc dba_tables;
    The Oracle DBA_TABLES system table has a LAST_ANALYZED field. This is a DATE type field and is recognized as a date field of 7 characters by DBA_CONNECT. However, the import does not work because the DATE is a 7-byte conglomerate of "...century, year, month, date, hour, minute and second." (extract from the Oracle documentation).
    To make this DATE field legible for DB connect, you must use the TO_CHAR function in a VIEW. This should display the following examples:
    SQL> select LAST_ANALYZED from dba_tables
          where table_name like 'RS%' and rownum < 10 ;
    The formatting used here is the default used implicitly by SQLPLUS.
    SQL> select  to_char(LAST_ANALYZED,'YYYYMMDD') as dat from dba_tables where table_name like 'RS%' and rownum < 10 ;
    The result now has the SAP compatible format YYYYMMDD and should be loaded correctly by the DB connect as a date.
    SQL> select  to_char(LAST_ANALYZED,'HH24MISS') as tim from dba_tables where table_name like 'RS%' and rownum < 10 ;
    The result now has the SAP compatible format HHMMSS and should be loaded correctly by the DB connect as a time.
    You can use the following example for more detailed experiments:
    SQL> select  to_char(
           TO_DATE('03-FEB-2001 04:05:06','DD-MON-YYYY HH24:MI:SS'),
           'YY-MM-DD HH24-MI-SS') as datim from dual;
    with the result:
      DATIM
      01-02-03 04-05-06
    When you create a VIEW and use the TO_CHAR function (or other functions), you should easily be able to avoid problems with the interpretation of date/time specifications (and other reformatting).
    Details about the functions and the formats are contained in the Oracle documentation.
    - Special characters
    A words that contain special characters can only be imported correctly if the code pages in BW and in the source system are identical. If the code pages are not the same, DB Connect can be used if the characters to be imported appear under the first 127 characters of the character set.
    The use of multibyte code pages in the source system for saving data using character sets with more than 256 characters (Kanji, Katakana, Hiragana, Korean, Chinese, Tagalog, Khmer, Arabic, Cherokee, and so on) can cause the characters to become corrupt.
    For questions concerning the code pages, also refer to the FAQ note 606359 and question/answer 19 that appears there.

  • Error while migrate my primavera sql database to oracle database

    I have used the migrate batch file to migrate my old database "Primavera V 6.0 SQL" to new database "Primavera V 8.2 Oracle"
    the process in my labtop is OK
    but in my PC the process hanged on "Creat remaining database objects (e.g. constraints and indexes) " Step
    with this error
    "Error in Run SQL Script orppm_ins_aux.sql: DatabaseToolException (ORA-02298: cannot validate (ADMUSER.FK_RSRCRATE_RSRC) - Perant keys not found ) "
    any help fixing this error

    user11108903 wrote:
    Hi,
    I used the migration tool to migrate a Primavera 6.2 SQL database to Oracle 11G DB. The migration tool runned successfully and I am able to login to the database using P6.2 client with no problem; however when attemptiong to update the license on the now Oracle database using the privuser account I get the following error "License could not be loaded because of error: List index out of bounds (247). Please make sure that you are using a privileged database login" the error comes up before I can browse to the location of licesne.txt file. Same procedure on a "native" Oracle P6.2 database works perfectly with no problem. Has any one run into this problem before? any help will be appreciated.
    Best Reagrds,I have not seen that specifically but it appears that not all of the grants were correctly applied.
    I would suggest running the schema validation tool which can be found on the knowledgebase as Solution ID: prim75459 as this will tell you what is missing/invalid.
    Once you know that, you can pull the neccesary grants from the create scripts located in the cd1\install\database\scripts folder.

  • Can i  use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?

    Can i  use Oracle Database Audit Vault and Oracle Database Firewall on Solaris?

    4195bee8-4db0-4799-a674-18f89aa500cb wrote:
    i dont have access to My Oracle Support can u send text or html of document please?
    Moderator Action:
    No they cannot send you a document that is available only to those with access to MOS.
    That would violate the conditions of having such service contract credentials.
    Asking someone to violate such privileges is a serious offense and could get that other person's organization banned from all support and all their support contracts cancelled.
    Your post is locked.
    Your duplicate post that you placed into the Audit Vault forum space has been removed (it had no responses).
    This thread which you had placed in the Solaris 10 forum space is moved to the Audit Vault forum space.
    That's the proper location for Audit Vault questions.

  • The application requires more database privileges than you have currently

    Hi,
    on 10g R2, no one can login to DB Control grid (not sys, not sysman nor system ). We get the following :
    The application requires more database privileges than you have currently been granted. Click on Help to get more version specific information.
    We are sure of password.
    I saw and applied the metalink notes 330682.1 and 363065.1 that says :
    grant SELECT_CATALOG_ROLE to user;
    grant select any dictionary to <user>;
    but no result.
    Any help ?
    Thank you.

    1. What operating system.
    2. What version of Oracle (10gR2 is a marketing label not a version number ... provide all decimal places)
    3. What are the values of the environment variables ORACLE_HOME and ORACLE_SID?

  • Oracle Database Express Edition SQL Developer

    Hi all,
    I did download the Oracle Database Express Edition from Oracle's website and am trying to create a new connection with the following info
    Connection Name: myconnection
    Username: ora21
    Password: ora21
    Hostname: localhost
    Port: 1521
    SID: orcl
    Note: I even tried to use xe as the SID since it's a express edition but it keeps telling me test failed: ORA-01017: invalid/password; logon denied.
    Could it be because it's an Express edition? Please advice as am a new DBA and am practising on my own

    @Jim: thanks for the reply! I just created the user ora21 but when I try to creat the connection again it gives error ORA 01045 : user ORA21 lacks create session privilege; logon denied.

  • ORA-12154 Connection error from HFM to Oracle Database

    Hi,
    I am trying to configure Hyperion HFM but can write to HFM database.
    The implementation architecture:
    Hyperion 11.1.2.2 (with all the requiered patches for HFM, FDM, Shared Services, Workspace and Oracle Application Development)
    Server 1:
    Windows Server 2008 x64
    Installed products: Foundation (EPMA, CalcManager), BI, HFM web components and ADM driver
    Configured products: Foundation(EPMA, CalcManager), BI.
    Database Client: 11gR2 x64
    Server 2:
    Windows Server 2008 x64
    Installed products: HFM, FDQM
    Configured Products: FDQM, HFM
    Database Client: 11gR2 x32, 11gR2 x64 (x32 version installed first)
    Server 3:
    Database: Oracle 11.2.0.2
    All the products from server 1 are working fine, FDQM (server 2) is also working fine, but, when I try to do any action related with HFM database the system fails.
    I have tested the connection is these scenarios:
    1. SQLdeveloper: successfull!, I can create tables, views, etc. Double checking the user privileges it has all the required.
    2. tnsping: successfull!
    3. HFMApplicationCopy utility: Successfull using UDL file and writing the connection parameters.
    4. EPM System Configurator: the configurator successfully validates the database connection information, but does not create the tables on the database. No errors in the configtool log.
    5. EPM Diagnostic Tool: fails with this error message:
    ------------STARTING VALIDATION SCRIPTS----------
    LOGGING IN HFM....
    CREATING APPLICATION....
    ERROR: Unable to CreateApplicationCAS
    Number (dec) : -2147215936
    Number (hex) : &H800415C0
    Description  : <?xml version="1.0"?>
    +<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>1356</Line><Ver>11.1.2.2.300.3774</Ver><PSec><Param><server_name></Param></PSec></ESec><ESec><Num>-2147215936</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>936</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxClient.cpp</File><Line>4096</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
    Source       : Hyperion.HFMErrorHandler.1
    ERROR: while Application created
    7. HFM Classic application creation: fails with the following error:
    Error*11*<user_name+>*10/19/2012 08:30:52*CHsxServer.cpp*Line 90*<?xml version="1.0"?>+
    +<EStr><Ref>{DC34A1FD-EE02-4BA6-86C6-6AEB8EF5E5A3}</Ref><AppName/><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147467259</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>HfmADOConnection.cpp</File><Line>511</Line><Ver>11.1.2.2.300.3774</Ver><DStr>ORA-12154: TNS:could not resolve the connect identifier specified</DStr></ESec><ESec><Num>-2147215616</Num><Type>1</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxSQLConnectionPool.cpp</File><Line>585</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServerImpl.cpp</File><Line>8792</Line><Ver>11.1.2.2.300.3774</Ver></ESec><ESec><Num>-2147215936</Num><Type>0</Type><DTime>10/19/2012 8:30:52 AM</DTime><Svr><server_name></Svr><File>CHsxServer.cpp</File><Line>90</Line><Ver>11.1.2.2.300.3774</Ver></ESec></EStr>+
    8. EPMA Application deployment: fails with same message.
    Please help me with some insights on this problem, I have tried everything but nothing works.
    Regards
    Edited by: Otein on 19-oct-2012 14:04

    Hi,
    I Have solved one of my problems, the one that keep HFM from connecting to the Oracle database.
    I just change the TNSNAMES.ORA, like this:
    Initial tnsnames.ora
    PRUEBA.WORLD=
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(LOAD_BALANACE = ON)+
    +(FAILOVER = ON)+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = <service_name>)+
    +)+
    +)+
    +)+
    Modified tnsnames.ora
    PRUEBA.WORLD=
    +(DESCRIPTION =+
    +(LOAD_BALANACE = ON)+
    +(FAILOVER = ON)+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = <server_name>)(PORT = <port>))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = <service_name>)+
    +)+
    +)+
    I Just delete the line "+(DESCRIPTION_LIST =+" and its corresponding closing parenthesis, I did this cause in the configuration utility log I saw this line:
    +TNS parsing: Entry: DESCRIPTION_LIST [[Address: Protocol:(TCP) Host:(<server_name>) Port:(1521) SID:(<service_name>)]]+
    So, if the applications were trying to connect to connection descriptor DESCRIPTION_LIST, the driver could not recognize DESCRIPTION_LIST as a valid one.
    There is a lot going on behind the scenes when you work with Oracle Database as the repository, maybe there is some other way to address this issue, but it worked for me, hope it can help you too.

  • Need to migrate oracle database 10.1.0.4.0(windows 2000 32bit) to 64bit

    Hi all,
    could you please send me the steps of 10G migration from 32 bit 2000 to 64 bit 2003. i have my prod server which is in hazerds because i have some operating system level problems ,
    *(source)*
    OS                      database
    windows 2000(32 bit)       10.1.0.4.0
    Target
    OS
    Windows 2003 (64bit)     10.1.0.4.0
    both the servers are on remote sites
    thanks and regards

    G.7 Database Migration from a 32-bit Windows Computer
    This section contains these topics:
    Backing Up a 32-Bit Oracle Database
    Migrating an Oracle Database 10g Release 1 (10.1) Database
    Migrating an Oracle9i or Older Database
    See Also:
    Oracle Database Upgrade Guide
    G.7.1 Backing Up a 32-Bit Oracle Database
    To back up a 32-bit Oracle home database:
    Start SQL*Plus:
    C:\> sqlplus /NOLOG
    Connect to the database instance as SYSDBA:
    SQL> CONNECT / AS SYSDBA;
    Create a .trc file to use as a template to re-create the control files on the 64-bit computer:
    SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
    Shut down the database:
    SQL> SHUTDOWN IMMEDIATE;
    Perform a full offline backup of the database.
    See Also:
    Oracle Database Recovery Manager Quick Start Guide
    G.7.2 Migrating an Oracle Database 10g Release 1 (10.1) Database
    To migrate an Oracle Database 10g Release 1 (10.1) database for 32-bit Windows to an Oracle Database 10g Release 1 (10.1) database for 64-bit Windows:
    Install Oracle Database 10g Release 1 (10.1) for 64-bit Windows.
    See Also:
    Oracle Database Installation Guide for Windows
    Create the new Oracle Database 10g Release 1 (10.1) service at the command prompt:
    C:\> ORADIM -NEW -SID SID [-INTPWD PASSWORD ]-MAXUSERS USERS
    -STARTMODE AUTO -PFILE ORACLE_HOME\DATABASE\INITSID.ORA
    The following table provides more information on the values you must supply.
    Parameter      Description
    SID     SID of the database you are upgrading
    PASSWORD     Password for the new Oracle Database 10g Release 1 (10.1) for 64-bit Windows database. This is the password for the user connected with SYSDBA privileges. The -INTPWD option is not required. If you do not specify it, then operating system authentication is used, and no password is required.
    USERS     Maximum number of users who can be granted SYSDBA and SYSOPER privileges
    ORACLE_HOME     Oracle home directory. Ensure that you specify the full path name with the -PFILE option, including drive letter of the Oracle home directory.
    Copy the 32-bit datafiles to the new 64-bit Oracle home.
    Copy the 32-bit configuration files to the 64-bit Oracle home.
    If your 32-bit initialization parameter file has an IFILE (include file) entry, then copy the file specified by the IFILE entry to the 64-bit Oracle home and edit the IFILE entry in the initialization parameter file to point to its new location.
    If you have a password file that resides in the 32-bit Oracle home, then copy the password file to the 64-bit Oracle home. The default 32-bit password file is located in ORACLE_BASE\ORACLE_HOME\database\pwdSID.ora., where SID is your Oracle instance ID.
    In the 64-bit Oracle home, add the _SYSTEM_TRIG_ENABLED = false parameter to the ORACLE_HOME\database\ORACLE_SID \init.ora file before changing the word size.
    Remove this parameter from the initialization file after the word size change is complete.
    See Also:
    Oracle Database Upgrade Guide for more information on changing word size
    Go to the 64-bit ORACLE_HOME\rdbms\admin directory from the command prompt.
    Start SQL*Plus:
    C:\> sqlplus /NOLOG
    Connect to the database instance as SYSDBA:
    SQL> CONNECT / AS SYSDBA;
    Re-create the 64-bit control files using the CREATE CONTROLFILE command. Edit the trace file created in "Backing Up a 32-Bit Oracle Database" to change the paths to the datafiles, log files and control files to point to the Oracle home on the 64-bit computer. This creates the new control file in ORACLE_HOME\database.
    Here is an example of a database named "orcl32" on a 32-bit computer migrating to "orcl64" on a 64-bit computer:
    CREATE CONTROLFILE REUSE DATABASE "T1" NORESETLOGS NOARCHIVELOG
        MAXLOGFILES 32
        MAXLOGMEMBERS 2
        MAXDATAFILES 32
        MAXINSTANCES 16
        MAXLOGHISTORY 1815
    LOGFILE
        GROUP 1 'C:\oracle\product\10.1.0\oradata\orcl64\REDO03.LOG'  SIZE 1M,
        # was   'C:\oracle\product\10.1.0\oradata\orcl32\...LOG'
        # on the 32-bit computer
        GROUP 2 'C:\oracle\product\10.1.0\oradata\orcl64\REDO02.LOG'  SIZE 1M,
        GROUP 3 'C:\oracle\product\10.1.0\oradata\orcl64\REDO01.LOG'  SIZE 1M
    DATAFILE
       'C:\oracle\product\10.1.0\oradata\orcl64\SYSTEM01.DBF',
        # was 'C:\oracle\product\10.1.0\oradata\orcl32\...DBF'
        # on the 32-bit computer
       'C:\oracle\product\10.1.0\oradata\orcl64\RBS01.DBF',
       'C:\oracle\product\10.1.0\oradata\orcl64\USERS01.DBF',
       'C:\oracle\product\10.1.0\oradata\orcl64\TEMP01.DBF',
       'C:\oracle\product\10.1.0\oradata\orcl64\TOOLS01.DBF',
       'C:\oracle\product\10.1.0\oradata\orcl64\INDX01.DBF',
       'C:\oracle\product\10.1.0\oradata\orcl64\DR01.DBF'
    CHARACTER SET WE8ISO8859P1;
    Alter the init file from the 32-bit computer to include the new control file generated in the preceding step.
    Start the database in RESTRICT mode:
    SQL> STARTUP RESTRICT;
    You might need to use the PFILE option to specify the location of your initialization parameter file.
    Set the system to spool results to a log file for later verification of success. For example:
    SQL> SPOOL catoutw.log
    Enter the following command to view the output of the script on-screen:
    SQL> SET ECHO ON;
    Recompile existing PL/SQL modules in the format required by the 64-bit Oracle9i database:
    SQL> @utlirp.sql;
    Turn off the spooling of script results to the log file:
    SQL> SPOOL OFF;
    Check the spool file and verify that the packages and procedures compiled successfully. Correct any problems you find in this file.
    If you were viewing the output of catoutw.log on-screen, disable viewing now:
    SQL> SET ECHO OFF;
    Exit the RESTRICT database mode:
    SQL> ALTER SYSTEM DISABLE RESTRICTED SESSION;
    The word size of the 64-bit Oracle Database 10g Release 1 (10.1) database is changed. You can open the database for normal use.This is from the link

  • Connect Problems with Oracle Database Express Edition 11g Release 2

    Hello,
    I am a student trying to install Oracle Database Express Edition 11g Release 2 and SQL Developer on my home system, Win7 64Bit, in order to practice some things I've learned from me DBA class and Developer classes.
    Anyway, I have everything installed, but I am having difficulty connecting as SYS or SYSDBA in the 'Run SQL Command Line', I keep getting the ORA-01017: invalid username/password: logon denied.
    However, If i select the 'Start Database' I get this:
    C:\oraclexe\app\oracle\product\11.2.0\server\bin>
    and I can type sqlplus / as sysdba and it starts up just fine and show user lists me as "SYS".
    but if I go back to 'Run SQL Command Line' I still cannot connect as SYS or SYSDBA...I find this both confusing and frustrating. I don't know if I am in different instances or something like that, but I seem to be limited to connecting only as "SYSTEM". I need SYS because I want to practice creating datafiles, instances and things like that, but I seem to be lost.
    Also, I am trying to create a new DB connection with SQL Developer and I can only us SYSTEM for my login which, if I understand correctly, will limit my privileges. Again When I try to sign in with SYS or SYSDBA I get error'd out. When I installed Ora11gDBExpress I was prompted in input a single password that was supposed to grant me access as SYS or SYSTEM, but I am limited to only SYSTEM for some reason.
    So, I am looking for help/guidance as to what to do.
    Thanks in advance for any and all help,
    Warren

    General rule of thumb, don't use sysdba unless you want to shut down the database, or grant a database user privileges on a sys object.
    A SYSTEM connection is not "limiting", it has the DBA role which means a user with a system connection can do most anything needed, including select/update/delete/drop any user's objects as well as change parameters in the instance.
    The system user can indeed add datafiles, tablespaces, etc. The instance and database should already be created as long as the installer completed all its chores correctly. For XE, per the license agreement only one instance can run on one host. If you want to try creating a database, it will require shutting down the XE instance and creating a new database service, creating the database, and installing the system catalog and any other optional components desired. Good practice indeed, but a bit advanced for the new user.
    Do create users for schemas ... connect system; create user <username> identified by <password> and connect <username> for the schemas (a collection of objects) within the database. Grant the resource and create session privilege to <username> to allow the database user the ability to create tables, indexes, stored procedures, etc.
    There is no "or" in a sys as sysdba connection, from 10g onwards a sys connection requires using the sysdba privilege. To enable a sysdba connection, add your host user to the ORA_DBA group on the host. To verify the OS users in the ORA_DBA group, this might work for win7, in a cmd box ...
    $ net localgroup ora_dba
    ...If your OS user is in the ora_dba group the sys as sysdba password is not relevant, you can in fact type anything for a password. If you wish to connect with the sysdba privilege from a remote client, that is a bit different and requires knowing the password set in the instance password file. Which should be set the same as the system password defined in the installer, but you can change that by creating a new password file. Another slightly advanced topic.
    In Windows IMHO its better to leave the listener and database set to Manual start (in the services applet, Start/Run/services.msc) and start the listener, then the database, when its needed. At least for an XE instance, as its intended for practice and learning RDBMS management.
    Edited by: clcarter on Mar 2, 2012 6:19 PM
    fix typos

  • Client or module information in oracle database in citrix environment

    We have oracle 10g database in citrix environment . We are enable to get client information when he is logon in oracle database or application through citrix. How can we get client information in oracle. we want to stop sqlplus or any other tools except our application. How it would be possible.
    Thanks
    Edited by: Wason Naveen on Feb 19, 2010 6:39 AM

    Sorry I wasn't sure.... But let me try to give you another idea.
    So if you want to protect your schema I suggest to use roles.
    I mean collect all schema privileges into two roles.
    Set default role for your schema user an almost empty role. (create session)
    Plus create a full featured role which is password protected.
    So you can implement in your application that when it connects it "SET ROLE" to the full featured one with password of course...
    This way only your application can use/see objects in schema...
    HTH, Zoltan

  • I have Installed Oracle Database 10g Express Edition so i have Problem.....

    Hello Friends
    I have Installed Oracle Database 10g Express Edition in "Ubuntu Linux" but i have Following Problems:
    1.) After i installed Oracle Database 10g Express Edition i gone to
    "Application" -> "Oracle Database 10g Express Edition" -> "Run SQL Command Line"
    SQL Window has been opened there i have typed "SELECT * FROM tab;" here i got Warning Messg of
    "SP2-0640: Not connected"
    2.) From There i have Again gone to
    "Application" -> "Oracle Database 10g Express Edition" -> "Start Database"
    i got Warning Messg of "Operation Failed. venu is not a Member of DBA Group"
    3.) Finally i want Solution For "How to get Connected in "Oracle Database 10g Express Edition"
    Please Post the Answer As Soon As Possible ...
    From Venu(INDIA)

    Was the oracle-xe configure completed successfully?
    Are the pmon and listener processes running ... set your environment and connect via sqlplus if so. If no processes, the instance needs a startup.
    $ ps -ef |egrep pmon
    oracle ... ora_pmon_XE
    $ ps -ef |egrep lsnr   # can also check the listener status, see below
    oracle ... /usr/.../tnslsnr ...
    $ lsnrctl status
    Endpoints Summary ...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<your hostname>)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=http) ... (PORT=8080)))
    ...In the ORACLE_HOME/bin directory there is a shell script you can source to set up your environment variables for connecting to the database. The full path to the .sh should be revealed by the tnslsnr process, /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
    $ /usr/.../oracle_env.sh
    $ sqlplus /nolog
    SQL> connect system
    Password: ...
    Connected.
    SQL> select status from v$instance;
    STATUS
    OPENThe oracle user created by the configure won't have a known password set. Set it and switch user to the oracle login. If you don't want to muck about with the oracle user, at least add your user to the dba group so that you can connect with the sysdba privilege when needed.
    Edited by: clcarter on Feb 22, 2011 7:06 AM

  • Listener TCPS Oracle Database SSL

    Hello,
    I would like to switch my listener from tcp to tcps.
    But we don't know how to do this, my configuration,
    SERVER:
    From server "*listener.ora*":
    SID_LIST_LISTENER =*
    +(SID_LIST =+
    +(SID_DESC =+
    +(SID_NAME = PLSExtProc)+
    +(ORACLE_HOME = /opt/u01/app/oracle/product/10.2.0)+
    +(PROGRAM = extproc)+
    +)+
    +)+
    SSL_CLIENT_AUTHENTICATION = FALSE*
    WALLET_LOCATION =*
    +(SOURCE =+
    +(METHOD = FILE)+
    +(METHOD_DATA =+
    +(DIRECTORY = /etc/ORACLE/WALLETS/oracle)+
    +)+
    +)+
    LISTENER =*
    +(DESCRIPTION_LIST =+
    +(DESCRIPTION =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = tibcoone)(PORT = 1521))+
    +)+
    +)+
    TRACE_LEVEL_LISTENER = ADMIN*
    From server "*sqlnet.ora*":
    SQLNET.AUTHENTICATION_SERVICES= (BEQ, TCPS)*
    SSL_VERSION = 0*
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)*
    SSL_CLIENT_AUTHENTICATION = FALSE*
    TRACE_LEVEL_SERVER = ADMIN*
    WALLET_LOCATION =*
    +(SOURCE =+
    +(METHOD = FILE)+
    +(METHOD_DATA =+
    +(DIRECTORY = /etc/ORACLE/WALLETS/oracle)+
    +)+
    +)+
    SQLNET.WALLET_OVERRIDE = TRUE*
    From server "*tnsnames.ora*":
    TIB =*
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCP)(HOST = tibcoone)(PORT = 1521))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = TIB)+
    +)+
    +)+
    WALLET_LOCATION =*
    +(SOURCE =+
    +(METHOD = FILE)+
    +(METHOD_DATA =+
    +(DIRECTORY = /etc/ORACLE/WALLETS/oracle)+
    +)+
    +)+
    EXTPROC_CONNECTION_DATA =*
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))+
    +)+
    +(CONNECT_DATA =+
    +(SID = PLSExtProc)+
    +(PRESENTATION = RO)+
    +)+
    +)+
    Version database server is:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit
    Two files in the path from Wallet:
    /etc/ORACLE/WALLETS/oracle/ewallet.p12
    /etc/ORACLE/WALLETS/oracle/cwallet.sso
    Server SQL> select parameter, value from v$option where upper(parameter) like '%SECURITY%';
    Enterprise User Security TRUE
    Oracle Label Security FALSE
    CLIENT:
    From client "*sqlnet.ora*":
    SQLNET.AUTHENTICATION_SERVICES= (BEQ, TCPS)*
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)*
    SSL_CLIENT_AUTHENTICATION = FALSE*
    WALLET_LOCATION =*
    +(SOURCE =+
    +(METHOD = File)+
    +(METHOD_DATA =+
    +(DIRECTORY = "C:\Documents and Settings\user\ORACLE\WALLETS"))+
    +)+
    SSL_SERVER_DN_MATCH = OFF*
    From client "*tnsnames.ora*":
    TIB_CLIENT =*
    +(DESCRIPTION =+
    +(ADDRESS_LIST =+
    +(ADDRESS = (PROTOCOL = TCPS)(HOST = tibcoone)(PORT = 1521))+
    +)+
    +(CONNECT_DATA =+
    +(SERVICE_NAME = TIB)+
    +)+
    +(SECURITY =+
    +(SSL_SERVER_CERT_DN = "cn=US,cn=CertForOracle,c=US,o=Company"))+
    +)+
    My problem:
    server$ lsnrctl start
    Instance "TIB", status READY, has 1 handler(s) for this service...
    client@ sqlplus system/pass@TIB_CLIENT
    ERROR:
    ora-28864 ssl connection closed gracefully
    server$ less /opt/u01/app/oracle/product/10.2.0/network/log/listener.log
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    I cannot connect my client into server database. I get error on client "ora-28864 ssl connection closed gracefully". I get error on server "TNS-12502: TNS:listener received no CONNECT_DATA from client"
    Thanks in advance..

    Hello, Kirill
    Thanks for your reply
    I checked my server:
    The directory exists a file called cwallet.sso is available
    - It is ok :)
    The user the oracle software is running under has the correct privileges to access the directory and wallet
    - It is ok :)
    Can you give an example about "*Implementing TCPS authentication*" ?
    I currently have:
    From server my default port is *1521*,
    I changed protocol on my server from TCP to TCPS in "*tnsnames.ora*" and "*listener.ora*":
    LISTENER_TIB =+
    *(ADDRESS = (PROTOCOL = TCPS)(HOST = tibcoone)(PORT = 1521))*
    TIB =+
    *(DESCRIPTION =*
    *(ADDRESS_LIST =*
    *(ADDRESS = (PROTOCOL = TCPS)(HOST = tibcoone)(PORT = 1521))*
    *(CONNECT_DATA =*
    *(SERVICE_NAME = TIB)*
    WALLET_LOCATION =+
    *(SOURCE =*
    *(METHOD = FILE)*
    *(METHOD_DATA =*
    *(DIRECTORY = /etc/ORACLE/WALLETS/oracle)*
    EXTPROC_CONNECTION_DATA =+
    *(DESCRIPTION =*
    *(ADDRESS_LIST =*
    *(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))*
    *(CONNECT_DATA =*
    *(SID = PLSExtProc)*
    *(PRESENTATION = RO)*
    SQL> show parameter local_listener
    NAME                                 TYPE        VALUE
    local_listener                       string      LISTENER_TIB
    $cat .bash_profile
    TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
    $tnsping LISTENER_TIB 9
    OK (10 msec)
    OK (0 msec)
    OK (0 msec)
    OK (10 msec)
    From client:
    I changed port on my client from TCP to TCPS in 'tnsnames.ora' and I receive error:
    ERROR:
    ora-28864 ssl connection closed gracefully
    What am I doing wrong ?
    Thanks and Best regards,
    Edited by: user6048424 on 2012-08-06 05:21
    Edited by: user6048424 on 2012-08-06 05:22

Maybe you are looking for

  • Why doesn't CC desktop app update work?  Error 50.

    I tried to update through the app when it told me there was a new update for Creative Cloud. The update failed to install (Error 50) after downloading.  Two different PCs with completely different hardware/drivers/configurations - same problem on bot

  • Notebook won't start after BIOS upgrade

    Notebook: HP Pavilion dv6-7003  OS: Windows 7 32-bit  An HP update thing just came up telling me to update, so I did, after they were all downloaded/installed I restarted and then it went to a special BIOS screen telling me what to do (not to turn of

  • How to print delivery note only to spool

    Hi,     Can anyone advise how to send print request from VL02N/Delivery Notes to a printer without actually printing anything ? i.e. print to a spool ? We want to avoid errors in SP01 caused due to spool requests sent to a printer which no longer exi

  • First Information from Client and Send Parameter From Site (source) to Sieb

    Hello, We need some help. We have the follow user requeriments: 1-) When the Client fill the fields for chat (Name, Email) it's possible to fill the first information about the problem. User wants that this information appear automatically to User th

  • Use of Recovery disks

    Hi, I am trying to reload a Satellite 1415-S173. I have the startup disks but no way to install them. The DVD-ROM is broken and the computer won't read an external DVD player on a USB port. Can the startup disks be broken down into floppies? Is there