Procedure to create Databasis in BW BCS

Hi,
I am new to BCS. can any one of you tell me how to design a databasis in BCS. what is the main transaction code involved to create a cube in BCS?
Thank you very much
Regards
Sailekha

Hi,
First you have to create your "Total Records" cube. You can create it in /nRSA1. You can copy a cube model from business content in AREA 0SEM_BCS. After you have that Total Records cube, goto /nUCWB - Konsolidierungsworkbench --> DATA Model --> Data Basis --> Context Menu --> Create --> Double click on your new data basis --> Input in Total records: <your total records cube> --> fill all empty fiels with your cube / ODS name --> Check the geneterated flag --> save.
BCS will generated all required (virtual)cube/ods.
Best Regards,
Suan Liono

Similar Messages

  • Procedure for creating logical standyby database for oracle 11g?

    Hi all,
    can anybody provide me docs /procedure for creating logical standby databse for oracle 11g standard edition.
    Aravind

    Aravind,
    1. The Oracle Standard Edition does not have standby mechanism, you should do it manually or go for Enterprise Edition.
    2. It's rather a question for General Database Discussions instead of Peoplesoft.
    Any further question regarding that point, please post out there.
    Nicolas.

  • Stored procedures in PV database

    I want to create PL/SQL stored procedures in Primavera database(Oracle 8.1.7) using JDBC ODBC bridge driver which further uses system dsn PrimaveraSDK_PE(Installed by standard Primavera client).
    Whenever i try creating it, i get an error message saying syntax error near word procedure.
    Same error occurs when i try creating a table.
    Following are my connection parameters:
    odbcURL = "jdbc:odbc:PrimaveraSDK_PE"
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con1 = DriverManager.getConnection(odbcURL, "admin", "admin");
    I can create the procedures using Oracle OCI driver but using that i do not have access to all fields..so errors says..invalid column.
    following are connection parameters:
    String driverName = "oracle.jdbc.driver.OracleDriver";
         Class.forName(driverName);
              con = DriverManager.getConnection("jdbc:oracle:oci8:@sapxi","privuser","privuser");
    Since I cannot see all the fields of database through PL/SQL, I think this approach would not work. To see all the fields of database I must access it using DSN ONLY!!! Even the administrative login is not been able to show me all the fields.This is the way they have designed it....
    So whats wrong in creating the stored procedures in oracle database using JDBC ODBC bridge driver using system DSN????????
    Please help

    Thanks for your reply!!!
    Here is the code!
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    class Try
    static String odbcURL = "jdbc:odbc:PrimaveraSDK_PE";
    static public synchronized Connection getConnection ()
                   throws SQLException, ClassNotFoundException
              Connection con1 = null;
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con1 = DriverManager.getConnection(odbcURL, "admin", "admin");
              return con1;
    public static void main(String[] args) throws Exception
              try
              Connection con = getConnection();
         String actionQuery = new StringBuffer( "select wbs_id, wbs_concat_name , wbs_short_name , wbs_name from projwbs where wbs_id = 3986").toString();
              ResultSet rs=null;
              PreparedStatement prepStmt = con.prepareStatement(actionQuery);
              rs = prepStmt.executeQuery();
              int wbsID = 0;
              if (rs == null )
                   System.out.println("rs null");
              else
              while(rs.next())
              wbsID = rs.getInt(1);
              System.out.println("rs not null");
              System.out.print(" " + wbsID);
              System.out.print(" " + rs.getString(2));
              System.out.print(" " + rs.getString(3));
              System.out.print(" " + rs.getString(4));
              rs.close();
              prepStmt.close();
    // Creating Stored Procedure....
    Statement stmt = con.createStatement();
    String procedure = "CREATE OR REPLACE PROCEDURE FirstProc AS BEGIN SELECT PROJ_ID FROM PROJECT; END; ";
    stmt.executeUpdate(procedure);
    System.out.println("Proceudre created or updated successfully!");
    stmt.close();
              catch(Exception e)
                   e.printStackTrace();
    and the complete stack trace!!!
    rs not null
    3986 EN EN ABCfghjkl
    java.sql.SQLException: [ATI][OpenRDA ODBC]Syntax error in SQL statement. syntax error line 1 at or after token <OR>.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(Unknown Source)
         at pack1.Try.main(Try.java:134)
    First two lines show the valid output for the select query..which is absolutely correct. But the create procedure statement is throwing above mentioned errors.
    Also one more important thing, I am not been able to view all the columns of table projwbs(its regarding Primavera SDK) through SQL Plus having administrative rights.
    But I can access all the fields using jdbc odbc bridge driver in Java.
    Is there any specific security or access control????
    so that users would able to access specific columns through JDBC only and not through SQL Plus.
    Please help!!!

  • Error in SAP Installation in phase 12 Create database

    Hi gurus,
    I´m stuck on sap installation main process.
    I´m install SAP ERP 2005 SR2  (= ECC 6.0 SR2) with OS windows 2003 server X64 and the Database is Oracle 10.2.0.4 !
    I´m facing with error in phase 12 of 44. That is in Create Database phase as you can see in following images:
    Error -->  http://img60.imageshack.us/img60/8488/errorinstallation12phas.jpg
    Error Log -->   http://img60.imageshack.us/img60/5725/errorinstallation12phas.png
    I checked some log files, such sapinst.log and clsc.log and the css.log, following you can see them:
    sapinst.log :
    ERROR 2009-07-15 20:09:50
    MUT-03025  Caught ESAPinstException in Modulecall: ESAPinstException: error text undefined.
    ERROR 2009-07-15 20:09:50
    FCO-00011  The step runCatprocSql with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_OraDBCheck|ind|ind|ind|ind|0|0|NW_OraDBMain|ind|ind|ind|ind|0|0|NW_OraDBStd|ind|ind|ind|ind|3|0|NW_OraDbBuild|ind|ind|ind|ind|5|0|runCatprocSql was executed with status ERROR .
    On path/directory  D:oracleERP102logsaperpaioclient :
    clsc.log :
    Oracle Database 10g CRS Release 10.2.0.4.0 Production Copyright 1996, 2008 Oracle.  All rights reserved.
    2009-07-15 20:02:01.672: [2292]utgdv:1:could not open registry key SOFTWAREOracleocr os error The system could not find the environment option that was entered.
    2009-07-15 20:02:01.672: [2292]proprinit: Could not open raw device
    2009-07-15 20:02:01.672: [2292]a_init:7!: Backend init unsuccessful :
    2009-07-15 20:02:01.672: [2292]clsssinit: error(33 ) in OCR initialization
    2009-07-15 20:02:02.844: [2292]utgdv:1:could not open registry key SOFTWAREOracleocr os error The system could not find the environment option that was entered.
    2009-07-15 20:02:02.844: [2292]proprinit: Could not open raw device
    2009-07-15 20:02:02.844: [2292]a_init:7!: Backend init unsuccessful :
    css.log :
    Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.
    2009-07-14 22:01:19.831: [1748]utgdv:1:could not open registry key SOFTWAREOracleocr os error The system could not find the environment option that was entered.
    Best regards,
    João Dimas - Portugal

    Hi uday kumar,
    1:  I install the DB release 10.2.0.1 through sapserver.cmd and next I install the patch 10.2.0.4 using setup.exe !!
    2:  The ora_sql_results.log have a big log ... I´m going put here the last entries of log: It´s possible to send you the log file of this using a personal message?! ...and so, in this way, you could see better the log file!!
    PL/SQL procedure successfully completed.
    SQL>
    SQL> #Rem stop the job
    SQL> BEGIN
      2     BEGIN
      3       -- call to stop the job
      4       ORACLE_OCM.MGMT_CONFIG.stop_job;
      5     EXCEPTION
      6       WHEN OTHERS THEN
      7         -- ignore any exception
      8         null;
      9    END;
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> #Rem submit the job and run now
    SQL> execute ORACLE_OCM.MGMT_CONFIG.submit_job;
    PL/SQL procedure successfully completed.
    SQL> execute ORACLE_OCM.MGMT_CONFIG.run_now;
    PL/SQL procedure successfully completed.
    SQL>
    SQL>
    SQL> Rem ADD NEW PACKAGES/NEW POST CATPROC FIXED VIEWS ABOVE THIS BLOCK
    SQL> -
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL>
    SQL> Rem Indicate CATPROC load complete and check validity
    SQL> BEGIN
      2     dbms_registry.update_schema_list('CATPROC',
      3       dbms_registry.schema_list_t('SYSTEM', 'OUTLN', 'DBSNMP'));
      4     dbms_registry.loaded('CATPROC');
      5     dbms_registry_sys.validate_catproc;
      6     dbms_registry_sys.validate_catalog;
      7  END;
      8  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> SET SERVEROUTPUT OFF
    SQL> exit;
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SAPINST: End of output of SQL executing program D:oracleERP102/bin/sqlplus.
    SAPINST found errors.
    SAPINST The current process environment may be found in sapinst_ora_environment.log.
    2009-07-15, 20:09:50 SAPINST ORACLE stop logging
    Best regards,
    João Dimas - Portugal

  • Not able to create database in Solaris 10 x86 Oracle 10.1.0.3

    I have installed Oralce 10.1.0.3 in Solaris 10 X86 using the procedure given without creating the database.(Installing the binaries)
    Hardware:Sun fire V20z.
    When i tried creating Database using DBCA,it was throwing lots of error.
    The errors are:
    1) ORA-03113: end-of-file on communication channel
    2) ORA-03114: not connected to oracle
    3) ORA-27100: shared memory realm already exists.
    Any help on creating a database in Solaris 10 x86 Oracle 10.1.0.3
    Thanks in Advance.

    Hi.
    Are You read documentation ?
    [http://download.oracle.com/docs/cd/E19680-01/html/821-1255/babhabac.html#z40000471052274]
    Guidelines for the /globaldevices File System
    Oracle Solaris Cluster software offers two choices of locations to host the global-devices namespace:
    A lofi device
    A dedicated file system on one of the local disks
    This section describes the guidelines for using a dedicated partition. This information does not apply if you instead host the global-devices namespace on a lofi.
    The /globaldevices file system is usually located on your root disk. However, if you use different storage on which to locate the global-devices file system, such as a Logical Volume Manager volume, it must not be part of a Solaris Volume Manager shared disk set or part of a VxVM disk group other than a root disk group. This file system is later mounted as a UFS cluster file system. Name this file system /globaldevices, which is the default name that is recognized by the scinstall(1M) commandSo:
    >I have mounted one (1) common 2gb LUN for both the nodes, so it is creating the problem...?
    It source of problem.
    Every node require have it's own separate slice for globaldevice.
    Shared Lun can be mounted with option global for access from both nodes at same time, but it will be second step - configure data-services.
    Regards.

  • How to call stored procedure in remote database

    Hi:
    I have a stored procedure in Oracle 8i database A on server A. I would like to call a stored procedure in Oracle 8i database B on server B. Both servers are on the same network.
    Is there an easy way to accomplish this using PL/SQL?
    What's the "best practice" for this?
    Thanks for your help!
    Rob

    I simply want to make a call from a procedure on server A to an insert procedure on server B. The procedure which is on server B should execute on server B. Is this what I need?
    Thanks!
    I assume you want to initiate the procedure from server B and executed on server A. Is that right ?
    1. Create a database link on server B
    CREATE DATABASE LINK databaseA.world CONNECT TO username identified by password using 'DATABASEA';
    2. Create synonym for the procedure
    CREATE SYNONYM proc_on_databaseB for [email protected];
    3. Execute the procedure using the new synonym.
    HTH,
    Allwyn
    Hi:
    I have a stored procedure in Oracle 8i database A on server A. I would like to call a stored procedure in Oracle 8i database B on server B. Both servers are on the same network.
    Is there an easy way to accomplish this using PL/SQL?
    What's the "best practice" for this?
    Thanks for your help!
    Rob

  • APEX fails with Java stored procedure that creates a JDBC connection

    Hello!
    We are facing a strange problem since we have upgraded from Oracle 10g and Apache to Oracle 11g with Embedded Gateway.
    Here is what we do:
    ** APEXX calls a PL/SQL package function "OPEN_CONNECTION" that wraps a Java stored procedure called "openConnection".*
    FILE_READER_REMOTE_API.openConnection(user, password, host, port, service);
    ** The Java stored procedures "openConnection" opens a JDBC connection to an other database:*
    public class FileReaderRemote {
    private static Connection conn = null;
    private static DefaultContext remoteContext = null;
    public static void openConnection(String user, String password, String host, String port, String service) throws SQLException {
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    java.util.Properties props = new java.util.Properties();
    props.put ("user", user);
    props.put ("password", password);
    //props.put ("database", "//" + host + ":" + port + "/" + service);
    props.put ("database", host + ":" + port + ":" + service);
    props.put("v$session.program", "FileReaderRemote2");
    // Connect to the database
    remoteContext = Oracle.getConnection("jdbc:oracle:thin:", props);
    This procedure used to work fine before the upgrade, but now we see the following:
    * It still works when called directly from TOAD or SQL*Plus, even under the user ANONYMOUS.
    * When called from APEX and the target database is Oracle 11g, it still works.
    * When called from APEX and the target database is Oracle 10g, it takes several minutes and we receive this error:
    *"Socket read timed out"*
    We have tested the following workaround:
    We have created a database link to our own database and called the stored procedure through that database link.
    FILE_READER_REMOTE_API.openConnection*@loopback*(user, password, host, port, service);
    This works, but is not really an option.
    I hope some one of you can explain this strange behaviour to me.
    Best regards,
    Matthias

    You wrote
    "Java stored procedures -- by definition - are stored in the 8i rdbms. !!"
    From the Oracle8i Java Stored Procedures Developer's Guide
    Release 8.1.5
    A64686-01
    "If you create Java class files on the client side, you can use loadjava to upload them into the RDBMS. Alternatively, you can upload Java source files and let the Aurora JVM compile them. In most cases, it is best to compile and debug programs on the client side, then upload the class files for final testing within the RDBMS"
    This means that you can create shared classes that are used on both the client and server side. The source does not need to reside within the server (according to their documentation). Please also note the following from the Oracle8i JDBC Developer's Guide and Reference Release 8.1.5 A64685-01 for using the getConnection() method on the server:
    "If you connect to the database with the DriverManager.getConnection() method, then use the connect string jdbc:oracle:kprb:. For example:
    DriverManager.getConnection("jdbc:oracle:kprb:");
    Note that you could include a user name and password in the string, but because you are connecting from the server, they would be ignored."
    So if you're coding a shared class that is to run on both the client and server side, you might do something like this:
    Connection conn =
    DriverManager.getConnection(
    System.getProperty("oracle.server.version") == null
    ? "jdbc:oracle:thin:@hostname:1521:ORCL"
    : "jdbc:oracle:kprb:"),
    "youruserid","yourpassword");
    As stated earlier, the userid and password are supposedly ignored for server connections retrieved in this manner. I haven't tried this yet, but it is documented by Oracle.
    Regards,
    Steve
    null

  • Creating database on OMF

    Hello Experts
    I am working on Oracle 10g Enterprise Edition Release 10.2.0.1.0 on Windows 2000
    Creating an OMF database with the folllowing procedure:
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Cache and I/O
    db_block_size=8192
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=demo
    # Diagnostics and Statistics
    background_dump_dest=C:\oracle\product\10.2.0/admin/demo/bdump
    core_dump_dest=C:\oracle\product\10.2.0/admin/demo/cdump
    user_dump_dest=C:\oracle\product\10.2.0/admin/demo/udump
    # File Configuration
    DB_CREATE_file_dest='C:\oracle\product\10.2.0\oradata\demo'
    DB_CREATE_ONLINE_LOG_DEST_1='C:\oracle\product\10.2.0\oradata\demo'
    DB_CREATE_ONLINE_LOG_DEST_2='C:\oracle\product\10.2.0\flash_recovery_area'
    db_recovery_file_dest=C:\oracle\product\10.2.0\flash_recovery_area
    db_recovery_file_dest_size=2147483648
    control_files=("C:\oracle\product\10.2.0\flash_recovery_area\demo\CONTROLFILE\control01.CTL",
    "C:\oracle\product\10.2.0\oradata\demo\CONTROLFILE\control02.CTL")
    # Job Queues
    job_queue_processes=10
    # Miscellaneous
    compatible=10.2.0.1.0
    # Processes and Sessions
    processes=150
    # SGA Memory
    sga_target=289406976
    # Security and Auditing
    audit_file_dest=C:\oracle\product\10.2.0/admin/demo/adump
    remote_login_passwordfile=EXCLUSIVE
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=orclXDB)"
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=96468992
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    When I run this command "create database demo"
    It throws this error on the screen "ORA 01092: Oracle instance terminated. Disconnection Forced.
    The alert log file looks something like this:
    Dump file c:\oracle\product\10.2.0/admin/demo/bdump\alert_reebok1.log
    Fri Jun 12 19:23:44 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows 2000 Version V5.0 Service Pack 4
    CPU : 2 - type 586
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:307M/1022M, Ph+PgF:1545M/2462M, VA:1934M/2047M
    Fri Jun 12 19:23:44 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Shared memory segment for instance monitoring created
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    WARNING: db_recovery_file_dest is same as db_create_online_log_dest_2
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =18
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:
    processes = 150
    sga_target = 289406976
    control_files = C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\demo\CONTROLFILE\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.2.0\ORADATA\demo\CONTROLFILE\CONTROL02.CTL
    db_block_size = 8192
    compatible = 10.2.0.1.0
    db_file_multiblock_read_count= 16
    db_create_file_dest = C:\oracle\product\10.2.0\oradata\demo
    db_create_online_log_dest_1= C:\oracle\product\10.2.0\oradata\demo
    db_create_online_log_dest_2= C:\oracle\product\10.2.0\flash_recovery_area
    db_recovery_file_dest = C:\oracle\product\10.2.0\flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    undo_management = AUTO
    undo_tablespace = UNDOTBS1
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
    job_queue_processes = 10
    audit_file_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\demo\ADUMP
    background_dump_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\demo\BDUMP
    user_dump_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\demo\UDUMP
    core_dump_dest = C:\ORACLE\PRODUCT\10.2.0\ADMIN\demo\CDUMP
    db_name =demo
    open_cursors = 300
    pga_aggregate_target = 96468992
    PMON started with pid=2, OS id=568
    PSP0 started with pid=3, OS id=2676
    MMAN started with pid=4, OS id=2144
    DBW0 started with pid=5, OS id=3424
    LGWR started with pid=6, OS id=1336
    CKPT started with pid=7, OS id=884
    SMON started with pid=8, OS id=2216
    RECO started with pid=9, OS id=2728
    CJQ0 started with pid=10, OS id=2328
    MMON started with pid=11, OS id=2888
    MMNL started with pid=12, OS id=1120
    Fri Jun 12 19:23:44 2009
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 1 shared server(s) ...
    Fri Jun 12 19:23:56 2009
    create database reebok1
    Fri Jun 12 19:23:56 2009
    WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
    Default Temporary Tablespace will be necessary for a locally managed database in future release
    Fri Jun 12 19:23:56 2009
    Database mounted in Exclusive Mode
    Fri Jun 12 19:24:06 2009
    Successful mount of redo thread 1, with mount id 1241163276
    Assigning activation ID 1241163276 (0x49faa60c)
    Thread 1 opened at log sequence 1
    Current log# 1 seq# 1 mem# 0: C:\ORACLE\PRODUCT\10.2.0\ORADATA\REEBOK1\demo\ONLINELOG\O1_MF_1_534QHNTV_.LOG
    Current log# 1 seq# 1 mem# 1: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\demo\ONLINELOG\O1_MF_1_534QHQ8S_.LOG
    Successful open of redo thread 1
    Fri Jun 12 19:24:06 2009
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Fri Jun 12 19:24:06 2009
    SMON: enabling cache recovery
    Fri Jun 12 19:24:06 2009
    create tablespace SYSTEM datafile /* OMF datafile */
    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    Fri Jun 12 19:24:08 2009
    Completed: create tablespace SYSTEM datafile /* OMF datafile */
    default storage (initial 10K next 10K) EXTENT MANAGEMENT DICTIONARY online
    Fri Jun 12 19:24:08 2009
    create rollback segment SYSTEM tablespace SYSTEM
    storage (initial 50K next 50K)
    Completed: create rollback segment SYSTEM tablespace SYSTEM
    storage (initial 50K next 50K)
    Fri Jun 12 19:24:15 2009
    CREATE UNDO TABLESPACE SYS_UNDOTS DATAFILE SIZE 10M AUTOEXTEND ON
    ORA-30012 signalled during: CREATE UNDO TABLESPACE SYS_UNDOTS DATAFILE SIZE 10M AUTOEXTEND ON
    Fri Jun 12 19:24:16 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\udump\demo_ora_3296.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type
    Fri Jun 12 19:24:16 2009
    Errors in file c:\oracle\product\10.2.0\admin\reebok1\udump\demo_ora_3296.trc:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '%ORACLE_HOME%\RDBMS\ADMIN\SQL.BSQ' near line 5792
    ORA-00604: error occurred at recursive SQL level 1
    ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type
    Error 1519 happened during db open, shutting down database
    USER: terminating instance due to error 1519
    Fri Jun 12 19:24:16 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_pmon_568.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:17 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_reco_2728.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:17 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_smon_2216.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:17 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_ckpt_884.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:17 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_psp0_2676.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:17 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_lgwr_1336.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:17 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_dbw0_3424.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:18 2009
    Errors in file c:\oracle\product\10.2.0\admin\demo\bdump\demo_mman_2144.trc:
    ORA-01519: error while processing file '' near line
    Fri Jun 12 19:24:18 2009
    Instance terminated by USER, pid = 3296
    ORA-1092 signalled during: create database demo...
    Thanks

    Hello,
    Are you using DBCA (Database configuration assitant) or customized script? I recommend you to use DBCA to create demo and you can choose Database file location (OMF) and make sure your database created successfully.
    Regards
    OrionNet

  • Tables not showing in a new Database created using CREATE DATABASE command

    Hi there! I've created a database using "Script Database As" in SSMS. Here's the code generated:
    USE [master]
    GO
    /****** Object:  Database [PLMAINDB]    Script Date: 08/22/2014 11:25:44 ******/
    CREATE DATABASE [PLTESTDB] ON  PRIMARY 
    ( NAME = N'CLIENTSPRIME_Data', FILENAME = N'C:\TEMPDB\CLP_Data.mdf' , SIZE = 217472KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
     LOG ON 
    ( NAME = N'CLIENTSPRIME_Log', FILENAME = N'C:\TEMPDB\CLP_Data.ldf' , SIZE = 1024KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
    GO
    ALTER DATABASE [PLMAINDB] SET COMPATIBILITY_LEVEL = 80
    GO
    IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
    begin
    EXEC [PLMAINDB].[dbo].[sp_fulltext_database] @action = 'disable'
    end
    GO
    ALTER DATABASE [PLTESTDB] SET ANSI_NULL_DEFAULT OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET ANSI_NULLS OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET ANSI_PADDING OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET ANSI_WARNINGS OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET ARITHABORT ON 
    GO
    ALTER DATABASE [PLTESTDB] SET AUTO_CLOSE ON 
    GO
    ALTER DATABASE [PLTESTDB] SET AUTO_CREATE_STATISTICS ON 
    GO
    ALTER DATABASE [PLTESTDB] SET AUTO_SHRINK ON 
    GO
    ALTER DATABASE [PLTESTDB] SET AUTO_UPDATE_STATISTICS ON 
    GO
    ALTER DATABASE [PLTESTDB] SET CURSOR_CLOSE_ON_COMMIT OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET CURSOR_DEFAULT  GLOBAL 
    GO
    ALTER DATABASE [PLTESTDB] SET CONCAT_NULL_YIELDS_NULL OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET NUMERIC_ROUNDABORT OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET QUOTED_IDENTIFIER OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET RECURSIVE_TRIGGERS OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET  DISABLE_BROKER 
    GO
    ALTER DATABASE [PLTESTDB] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET DATE_CORRELATION_OPTIMIZATION OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET TRUSTWORTHY OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET ALLOW_SNAPSHOT_ISOLATION OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET PARAMETERIZATION SIMPLE 
    GO
    ALTER DATABASE [PLTESTDB] SET READ_COMMITTED_SNAPSHOT OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET HONOR_BROKER_PRIORITY OFF 
    GO
    ALTER DATABASE [PLTESTDB] SET  READ_WRITE 
    GO
    ALTER DATABASE [PLTESTDB] SET RECOVERY FULL 
    GO
    ALTER DATABASE [PLTESTDB] SET  MULTI_USER 
    GO
    ALTER DATABASE [PLTESTDB] SET PAGE_VERIFY TORN_PAGE_DETECTION  
    GO
    ALTER DATABASE [PLTESTDB] SET DB_CHAINING OFF 
    GO
    The mdf and ldf files for PLTESTDB were created successfully. The issue I'm having is that tables are not showing when under PLTESTDB. I've searched online and most answers point to Permission issue. I already added user with the ff. database roles 
    db_owner
    db_reader
    db_writer
    But even after refreshing or even closing relaunching SSMS, i could not see any table under PLTESTDB. I've spent  a lot of time already on this but can't find the fix. I might be missing something here. I tried it on another computer but same issue
    persists. 
    Any ideas or suggestions on how to get this resolved are highly appreciated! Thanks in advance. 
    Bong Robles

    You're right Olaf! The above script is only for creating DB and not tables.   I should have done further reading.  I tried now generating scripts for all objects and I got the ff. error:
    Msg 207, Level 16, State 1, Procedure CallbackFormViewUpdateCommand, Line 38
    Invalid column name 'upsizets'.
    Msg 207, Level 16, State 1, Procedure CallbackFormViewInsertCommand, Line 37
    Invalid column name 'upsizets'.
    Msg 207, Level 16, State 1, Procedure CallbackFormViewInsertCommand, Line 39
    Invalid column name 'upsizets'.
    Msg 1018, Level 15, State 1, Procedure GrabCounterUpdate, Line 7
    Incorrect syntax near 'holdlock'. If this is intended as a part of a table hint, A WITH keyword and parenthesis are now required. See SQL Server Books Online for proper syntax.
    Msg 1018, Level 15, State 1, Procedure GrabCounterAllUpdate, Line 7
    Incorrect syntax near 'holdlock'. If this is intended as a part of a table hint, A WITH keyword and I parenthesis are now required. See SQL Server Books Online for proper syntax.
    I'm working on fixing the errors now. I think I can handle this now.
    Really appreciate your quick help. Thanks!
    Bong Robles
    I think script is having reference to a column which doesnt exist
    But unless we see script we will not able to understand the exact reason
    Can you post script?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Stored Procedure that creates a trigger on new tables

    I am trying to create a stored procedure that creates a trigger on new tables whenever the table is created.  The procedure should receive the new project table's name, and then create a dml trigger on that procedure.  When the procedure
    is run, I get an error "Incorrect syntax near keyword 'TRIGGER.'"  This is how my Stored Procedure looks in SQL Management Studio.  Any suggestions?
    USE [RIDB_DynamicDesign]
    GO
    /****** Object: StoredProcedure [dbo].[sp_CreateTriggerMarkLatest] Script Date: 11/08/2014 16:43:20 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[sp_CreateTriggerMarkLatest] @ProjectTable nvarchar(128), @ItExists int OUTPUT
    AS
    DECLARE @SQL nvarchar(4000)
    DECLARE @MarkLatest nvarchar(30)
    DECLARE @LatTrue bit
    DECLARE @LatFalse bit
    SET @LatTrue = 'True'
    SET @LatFalse = 'False'
    SET @SQL = 'CREATE TRIGGER tr_MarkLatest ON ' + @ProjectTable + ' AFTER INSERT
    AS
    UPDATE ' + @ProjectTable + ' SET Latest = @LatFalse
    UPDATE ' + @ProjectTable + ' SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM ' + @ProjectTable + ' p WHERE
    NOT EXISTS (SELECT 1 FROM ' + @ProjectTable + ' WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))'
    EXEC sp_executesql @SQL, N'@ProjectTable nvarchar(128), @LatTrue bit, @LatFalse bit',
    @ProjectTable, @LatTrue, @LatFalse
    Gina

    First you have to debug the dynamic SQL string with a PRINT statement. I see some problems:
    CREATE PROCEDURE [dbo].[uspCreateTriggerMarkLatest] @ProjectTable nvarchar(128), @ItExists int OUTPUT
    AS BEGIN
    DECLARE @SQL nvarchar(4000)
    DECLARE @MarkLatest nvarchar(30)
    DECLARE @LatTrue bit
    DECLARE @LatFalse bit
    SET @LatTrue = 'True'
    SET @LatFalse = 'False'
    SET @SQL = 'CREATE TRIGGER tr_MarkLatest ON ' + @ProjectTable + ' AFTER INSERT
    AS
    UPDATE ' + @ProjectTable + ' SET Latest = @LatFalse
    UPDATE ' + @ProjectTable + ' SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM ' + @ProjectTable + ' p WHERE
    NOT EXISTS (SELECT 1 FROM ' + @ProjectTable + ' WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))'
    PRINT @SQL;
    -- EXEC sp_executesql @SQL, N'@ProjectTable nvarchar(128), @LatTrue bit, @LatFalse bit', @ProjectTable, @LatTrue, @LatFalse
    END
    GO
    DECLARE @ItExists int, @ProjectTable nvarchar(128) = N'TestTrigger';
    EXEC [dbo].[uspCreateTriggerMarkLatest] @ProjectTable, @ItExists OUTPUT
    CREATE TRIGGER tr_MarkLatest ON TestTrigger AFTER INSERT
    AS
    UPDATE TestTrigger SET Latest = @LatFalse
    UPDATE TestTrigger SET Latest = @LatTrue WHERE
    ID IN (SELECT ID FROM TestTrigger p WHERE
    NOT EXISTS (SELECT 1 FROM TestTrigger WHERE
    Name = p.Name AND Vers = p.Vers
    AND Date > p.Date))
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Failed to provision site PWA with error: Microsoft.Office.Project.Server.Administration.ProvisionException: To create databases we need dbcreator and securityadmin server roles on servers.

    I'm getting the following errors while trying to provision a PS 2010 PWA on our SharePoint 2010 farm. Our PS instance has been working for a while now, and houses two other PWAs. But today,
    when trying to create this one, I get "Failed - see the Application event Log" and the following in the Event Viewer:
    Log Name: Application
    Source: Microsoft-SharePoint Products-Project Server
    Date: 4/2/2014 2:09:08 PM
    Event ID: 6980
    Task Category: Provisioning
    Level: Error
    Keywords:
    User: DOMAIN\DB_Access
    Computer: server
    Description:
    Provisioning 'PWA/SDN': To create databases we need dbcreator and securityadmin server roles on servers 'DB1' and 'DB1'.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-SharePoint Products-Project Server" Guid="{b2178104-1b5b-4c20-8c8f-960678ced9e5}" />
    <EventID>6980</EventID>
    <Version>14</Version>
    <Level>2</Level>
    <Task>20</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2014-04-02T19:09:08.225Z" />
    <EventRecordID>1676727</EventRecordID>
    <Correlation ActivityID="{90131653-B0A4-4FAF-A43C-7DF07CBC3332}" />
    <Execution ProcessID="11040" ThreadID="12384" />
    <Channel>Application</Channel>
    <Computer>sharepoint</Computer>
    <Security UserID="S-1-5-21-2280669542-4145173436-3058324265-4222" />
    </System>
    <EventData>
    <Data Name="string0">PWA/SDN</Data>
    <Data Name="string1">DB1</Data>
    <Data Name="string2">DB1</Data>
    </EventData>
    </Event>
    Log Name: Application
    Source: Microsoft-SharePoint Products-Project Server
    Date: 4/2/2014 2:09:08 PM
    Event ID: 6993
    Task Category: Provisioning
    Level: Error
    Keywords:
    User: DOMAIN\DB_Access
    Computer: sharepoint
    Description:
    Provisioning 'PWA/SDN': Failed to provision databases. An exception occurred: To create databases we need dbcreator and securityadmin server roles on servers..
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-SharePoint Products-Project Server" Guid="{b2178104-1b5b-4c20-8c8f-960678ced9e5}" />
    <EventID>6993</EventID>
    <Version>14</Version>
    <Level>2</Level>
    <Task>20</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2014-04-02T19:09:08.225Z" />
    <EventRecordID>1676728</EventRecordID>
    <Correlation ActivityID="{90131653-B0A4-4FAF-A43C-7DF07CBC3332}" />
    <Execution ProcessID="11040" ThreadID="12384" />
    <Channel>Application</Channel>
    <Computer>sharepoint</Computer>
    <Security UserID="S-1-5-21-2280669542-4145173436-3058324265-4222" />
    </System>
    <EventData>
    <Data Name="string0">PWA/SDN</Data>
    <Data Name="string1">To create databases we need dbcreator and securityadmin server roles on servers.</Data>
    </EventData>
    </Event>
    Log Name: Application
    Source: Microsoft-SharePoint Products-Project Server
    Date: 4/2/2014 2:09:08 PM
    Event ID: 6958
    Task Category: Provisioning
    Level: Error
    Keywords:
    User: DOMAIN\DB_Access
    Computer: sharepoint
    Description:
    Provisioning 'PWA/SDN': Database provisioning failed.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-SharePoint Products-Project Server" Guid="{b2178104-1b5b-4c20-8c8f-960678ced9e5}" />
    <EventID>6958</EventID>
    <Version>14</Version>
    <Level>2</Level>
    <Task>20</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2014-04-02T19:09:08.225Z" />
    <EventRecordID>1676729</EventRecordID>
    <Correlation ActivityID="{90131653-B0A4-4FAF-A43C-7DF07CBC3332}" />
    <Execution ProcessID="11040" ThreadID="12384" />
    <Channel>Application</Channel>
    <Computer>sharepoint</Computer>
    <Security UserID="S-1-5-21-2280669542-4145173436-3058324265-4222" />
    </System>
    <EventData>
    <Data Name="string0">PWA/SDN</Data>
    </EventData>
    </Event>
    Log Name: Application
    Source: Microsoft-SharePoint Products-Project Server
    Date: 4/2/2014 2:09:08 PM
    Event ID: 6971
    Task Category: Provisioning
    Level: Error
    Keywords:
    User: DOMAIN\DB_Access
    Computer: sharepoint
    Description:
    Failed to provision site PWA/SDN with error: Microsoft.Office.Project.Server.Administration.ProvisionException: Failed to provision databases. ---> Microsoft.Office.Project.Server.Administration.ProvisionException: To create databases we need dbcreator and
    securityadmin server roles on servers.
    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureDatabases(ProjectProvisionSettings provset, SPSite pwaSite, String adminName, String adminEmail, ProjectDatabaseStateType& originalDatabaseState, Guid& adminGuid)
    --- End of inner exception stack trace ---
    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureDatabases(ProjectProvisionSettings provset, SPSite pwaSite, String adminName, String adminEmail, ProjectDatabaseStateType& originalDatabaseState, Guid& adminGuid)
    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings provset)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-SharePoint Products-Project Server" Guid="{b2178104-1b5b-4c20-8c8f-960678ced9e5}" />
    <EventID>6971</EventID>
    <Version>14</Version>
    <Level>2</Level>
    <Task>20</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2014-04-02T19:09:08.226Z" />
    <EventRecordID>1676730</EventRecordID>
    <Correlation ActivityID="{90131653-B0A4-4FAF-A43C-7DF07CBC3332}" />
    <Execution ProcessID="11040" ThreadID="12384" />
    <Channel>Application</Channel>
    <Computer>sharepoint</Computer>
    <Security UserID="S-1-5-21-2280669542-4145173436-3058324265-4222" />
    </System>
    <EventData>
    <Data Name="string0">PWA/SDN</Data>
    <Data Name="string1">Microsoft.Office.Project.Server.Administration.ProvisionException: Failed to provision databases. ---&gt; Microsoft.Office.Project.Server.Administration.ProvisionException: To create databases we need dbcreator and securityadmin
    server roles on servers.
    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureDatabases(ProjectProvisionSettings provset, SPSite pwaSite, String adminName, String adminEmail, ProjectDatabaseStateType&amp; originalDatabaseState, Guid&amp; adminGuid)
    --- End of inner exception stack trace ---
    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureDatabases(ProjectProvisionSettings provset, SPSite pwaSite, String adminName, String adminEmail, ProjectDatabaseStateType&amp; originalDatabaseState, Guid&amp; adminGuid)
    at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings provset)</Data>
    </EventData>
    </Event>
    Anybody ever get any events like this before? I'm not finding much or nothing on Google or on other forums, so I thought I would run it past and see if anyone has experienced anything of a similar
    nature. And yes, the farm account obviously has creator/secadmin permissions, at this point of our deployment....
    I look forward to any and all feedback. Thanks and good afternoon!

    I figured out the answer to this myself. For those few who might run into something akin to my error...
    During the off-hours of where I work, I re-applied the farm account credentials to all dB server VM SQL services that had the account for a log-on (i.e., MSSQLSERVER, SQLSERVERAGENT, etc.) as well as all SharePoint services on our WFE/App Server VM (a two
    server farm is what we host), in that order. Then I rebooted the dB server first, followed by the SharePoint server. Upon coming back, everything was working fine again. I was able to provision a site, no probelm, and it seemed to even be a little snappier
    when doing so.
    One note: doing this procedure gave me a "One or more services have started or stopped unexpectedly" error in the Health Analyzer, for the SPTimerV4 service. When you get this, simply enter into the item and click on "Reanalyze Now;" this will quickly clear
    the error out of the Analyzer, and all should be right with the world! :)

  • How to create database roles  ?

    Hi ,
    i am trying to create database roles,
    what is the best way to do that ?
    I want to be able to create the following database roles on my local machine:
    CSDExec
    CSDAdmin     
    TCFBurOps     
    TCFAreaLieutenants     
    TCFCourtSupervisors
    More to this problem, each role will be accessing an X number of tables , not all.
    Also, I will be creating the same roles on the Dev Box at the client site.
    What is the best way to do it in ?
    Should I use a procedure, package, etc.
    Please help me with examples:
    This is my first time creating database roles.
    I am using SQL Developer
    thanks,

    Hi,
    For things like that, I use SQL*Plus scripts, containing the CREATE ROLE and GRANT commands.
    Often, in the Development database, I build these scripts a little at a time, commenting out commands after I've done them. Then, when I'm ready to make the changes in the Test and Production databases, I remove the comments.
    For example, on Monday I may create a role and grant some privileges, so I write and run a script like this:
    CREATE ROLE     firbolig_user;
    GRANT SELECT      ON  table_x      TO firbolig_user;
    GRANT EXECUTE      ON  pkg_a       TO firbolig_user;On Tuesday, I create another table, and schange the script to this:
    /*     *****  This section has already been done in Development  *****
    CREATE ROLE     firbolig_user;
    GRANT SELECT      ON  table_x      TO firbolig_user;
    GRANT EXECUTE      ON  pkg_a       TO firbolig_user;
    GRANT SELECT      ON  table_y      TO firbolig_user;and run it.
    On Wednesday, I decide I need another role, so I change the script to this:
    /*     *****  This section has already been done in Development  *****
    CREATE ROLE     firbolig_user;
    GRANT SELECT      ON  table_x      TO firbolig_user;
    GRANT SELECT      ON  table_y      TO firbolig_user;
    GRANT EXECUTE      ON  pkg_a       TO firbolig_user;
    CREATE ROLE     firbolig_admin;
    GRANT          firbolig_user     TO firbolig_admin;
    GRANT SELECT, INSERT, UPDATE, DELETE
              ON table_x     TO firbolig_admin;
    GRANT SELECT     ON table_z     TO firbolig_admin;
    GRANT SELECT     ON x_seq     TO firbolig_admin;and run it.
    I continue like that through the development process.
    Then, when I'm ready to move to the Test database, I remove the comment lines and run the entire script in Test.

  • How to create Database, table , and apply triiger on oracle10g lite ?

    Hello All,
    I want to use oracle 10g lite , i just download oracle 10g lite from oracle site and just install on my system, i have no any knowledge how to create database, how to create tables and how to apply triggers on tables. I want to access this database using JDBC.
    plzzzzzzzzzzzzzzzzzz help me...............
    Thanks in advance
    Pankaj

    are you trying to use oracle lite just as a database? it is normally used as part of a data synchronisation from a server, replicating snapshots to create the database and tables on the client.
    PL/SQL format triggers are not supported in the oracle lite client. Java stored procedures are, but you would need to build the table interactions

  • Problem when call store procedure over a database link

    Hi all,
    I've create a database link in server "EAST" similar like:
    CREATE DATABASE LINK db_link CONNECT TO tiger IDENTIFIED BY scott USING 'abc';
    and from server "EAST" i ran the procedure located in server "WEST" somethin like:
    exec testing_procedure@db_link('test');
    testing_procedure is look like:
    Create or Replace procedure testing_procedure (p_testing in varchar2)
    as
    cursor check_space is
    select sum(bytes)/1024/1204 tb_size
    from dba_data_files;
    my_check_space%ROWTYPE;
    begin
    open check_space;
    loop
    fetch check_space into my_check_space;
    exit when check_space%NOTFOUND;
    insert into test_tf@db_link (test, tb_value) values
    (p_testing, my_check_space.tb_size);
    end loop;;
    close check_space;
    end;
    and my problem is when i'm run procedure from "EAST" server, the values in test_tf table is the same as when you run that procedure from "WEST" server. I've check the size for both server "EAST", and "WEST" by select sum(bytes)/1024/1204 command. And the value is completely different. And i guest somehow it reuse the value of "WEST" server no matter when you run that procedure in "EAST" server. Any suggesttion, please give me some advices.
    Thanks,
    Kevin

    If this procedure is in WEST server then even if you call it from some another planet using db link, the cursor inside the procedure will fetch the data from that server only means WEST server. So "select sum(bytes)/1024/1204 tb_size
    from dba_data_files;" statement in your procedure always fetch the size of the datafiles belongs to the WEST database.
    If you want to store the data of two different databases then you have to create the similar procedure in EAST database also.
    BTW, you said the you created a database link "db_link" in EAST database to point to WEST database and on WEST database you have that procedure BUT I don't understand why r u using "db_link" in your procdure code in WEST server in this insert statement:
    insert into test_tf@db_link (test, tb_value) values
    (p_testing, my_check_space.tb_size);Is there a database link on that box also?? Where it is pointing to?? And if not then this code should not be compiled.
    Daljit Singh

  • Is it possible to calling another stored procedure in another database?

    Hello all, I hope you can help me out.
    I need to call another stored procedure in another database? Is it possible?
    I know you can call another stored procedure in the same package:
    Var_SQL :='call SP_Tes (''' || Var_1 || ''',''' || Var_2 ||''')' ;
    EXECUTE IMMEDIATE Var_SQL;
    But how do call it if its in another database? I assume, I'd have to open a new connection to it, then call it...
    Please help me. thanks

    I managed to find my synonym;
    select synonym_name, table_owner, table_name from all_synonyms where synonym_name = 'PKG_EDONWEB70'
    (BTW, its upper case sensitive, I eventually found out)
    But as you said; "anyway, what..."
    1)Crete synonym with the dblink, which is the same DB as the one I'm using:chec
    create public synonym pkg_edonweb70test2 for [email protected]
    Result: ok2)check it exists:
    select synonym_name, table_owner, table_name from all_synonyms where synonym_name = 'PKG_EDONWEB70TEST2'
    Result: ok3)check it runs in sql:
    DECLARE
        P_RETURNVALUE1 number;
    BEGIN
        PKG_EDONWEB70TEST2.SP_TESTSMB_DESTINATION ( P_RETURNVALUE1 );   
        COMMIT;
    END;
    Result: ok4)Add it to the strored procedure that is going to call it
    PROCEDURE sp_testSMB_origin(P_RETURNVALUE1 OUT number) IS
            thissql varchar(1000);      
        BEGIN
        BEGIN
            PKG_EDONWEB70TEST2.SP_TESTSMB_DESTINATION ( P_RETURNVALUE1 );   
            COMMIT;
        END;
        end sp_testSMB_origin;
    Result: FAIL; pls-00201: identifier 'PKG_EDONWEB70TEST2' must be declared

Maybe you are looking for

  • Adobe Media Encoder Mac problem

    Hi folks, I've put off posting this for 2 months now in the hopes that I could figure it out myself by reading through the myriad of other posts on this, but I'm at the end of my efforts with no luck. First off, system specs: Mac Pro 2.8 GHz 8 core,

  • Withholding tax is getting updated in cleared items

    Dear Expert, Withholding tax is getting updated in cleared items when i do invoice. it happens some times.i am not getting reason why it go to cleared item instead of open item in withholding tax GL. Kindly help on above.... Regards

  • Disable photo download for Who's Who ivew.

    Hi recently we have configured the who's who ivew in which upon seraching the Emloyee we can see all there details and also see there Picture. Sad part is that these pictures are downloadable i.e Right clcik and save picture As. is there a way that w

  • Hardware mixing in ALSA

    According to the ALSA soundcard matrix my soundcard (Echo MiaMIDI) supports hardware mixing, although I seem to be unable to get this working. I've tried different asound.conf files as well as using none at all. However, while playing one sound at a

  • Help with Mail Package

    Hi all, I have a interface PROXY - MAIL. I need to generate the attachment name dynamically, send an attachment and fill the body of email. I'm using Mail Package, according to note 748024. But I do not know how to fill the body of email and send att