Error on restore a database using sqlcmd

Hi
I wrote a command to to restore a database (from SQL server backup tool) , it works for a few restore files but faild with a specific bak file.
The error:
sqlcmd  -U sa -P password -Q "RESTORE DATABASE TfsWorkItemTracking FROM DISK='x:\tfs\TfsWorkItemTracking.bak' WITH  FILE = 1,
 MOVE N'TfsWorkItemTracking' TO N'D:\SQL_Data\Data\TfsWorkItemTracking.mdf',  MOVE N'TfsWorkItemTracking_log' TO N'L:\SQL_Data\Log\TfsWorkIt
emTracking_log.ldf',  NOUNLOAD,  REPLACE,  STATS = 100"
Msg 3634, Level 16, State 1, Server SRVRND-TFSDB10, Line 1
The operating system returned the error '3(failed to retrieve text for this error. Reason: 15105)' while attempting 'CreateFile' on 'C:\Prog
ram Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData\TeamFoundationServer10FullTextCatalog\SQL.HDR'.
Msg 3013, Level 16, State 1, Server SRVRND-TFSDB10, Line 1
RESTORE DATABASE is terminating abnormally.
I understood from the error that it is an access error - BUT the path the process try to create the file is not exist at all.
One more issue - when I use the SQL Management consle to restore the database it works propery.
Any idea ?
CM Consultant

Hello Jason, OP and future readers,
The issue here is not what Jason suggested, but was caused by the fact that this database (TfsWorkItemTracking) is a part of Team Foundation Server, and has embedded in it a third item (for Full Text Search queries) that also needs its own MOVE TO clause.
Here is a suitable SQLCMD query that will do what the OP needed:
sqlcmd -U sa -P password -Q "RESTORE DATABASE [TfsWorkItemTracking] FROM  DISK = ’x:\tfs\TfsWorkItemTracking.bak’ WITH  FILE = 1, 
MOVE N’TfsWorkItemTracking’ TO N’D:\SQL_Data\Data\TfsWorkItemTracking.mdf’, 
MOVE N’TfsWorkItemTracking_log’ TO ’L:\SQL_Data\Log\TfsWorkItemTracking.LDF’, 
MOVE N’sysft_TeamFoundationServer10FullTextCatalog’ TO N’D:\SQL_Data\Data\TfsWorkItemTracking.TeamFoundationServer10FullTextCatalog’, 
NOUNLOAD,  STATS = 100"
The original poster was missing that third "MOVE TO" clause, and SQL Server didn't know what to do with the Full Text metadata in this backup.  Note that this object is referenced in the error message, and note that it is attempting
to create this file on the C:, which is the original location of the file when the backup was made, hence leading to the solution.
It is a certainty that the OP ran into this while attempting to migrate from Team Foundation Server 2008 to new hardware and a newer version of SQL and TFS, as this is a common hiccough in the process that isn't well documented.  (The majority of the
instructions just say "back up the databases, then restore them to the new SQL server...)
Jeff Woods
STI Computer Services, Inc.
Eagleville, PA

Similar Messages

  • Error in restoring a database

    Hi,
    I can't able to restore a database, below is the error,please help me out?
    TITLE: Microsoft SQL Server Management Studio
    Restore failed for Server 'xxxxx'.  (Microsoft.SqlServer.SmoExtended)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Restore+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    System.Data.SqlClient.SqlError: The media set has 2 media families but only 1 are provided. All members must be provided. (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&LinkId=20476

    Basically the error is telling you that when the backup was taken it was made to two backup files rather than one, so the backup was stripped across the two of them. You're now trying to restore the backup using only one of those files, which is why you're
    getting the error. To do the restore you need to use both files not just one of them. There's a good discussion of this error here
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/abf50e00-c9b0-4809-9e61-43ed8a53e968/the-media-set-has-2-media-families-but-only-1-are-provided?forum=sqltools which goes into more detail of how you end up in this situation, and also methods you
    can use to find out what the second file was (in case you don't know) so you can hopefully track it down.

  • Restore primary database using physical standby

    hi,
    i am taking rman backup on production database,we have physical standby.coming month i have to take backup from standby instead of prod db.pls advise me, is it possible to restore and recover production database using standby database backup.if production crashed.pls advise me .i am new to dba.if possible pls provide proper steps.
    Regards
    Faruk

    Faruk.m wrote:
    hi,
    i have to take backup on standby instead of production.failover i can do.but i need to know the recovery procedures from standby.and thank u for reply.i want, is it possible to restore my production controlfile with controlfile backup from standby.
    i tested with my local database ,that below:
    1.backup with controlfile from standby (rman>backup current controlfile)
    2.manual deleted my test db controlfile,tried to restore from backup taken from standby(rman>restore controlfile from '*****************';)
    3.rman>restore database
    3.but it shows error (datafile already exists) ,controlfile tried to create datafiles on standby location.
    my conclusion:above my cmds used to create datafiles on standby becoz i restored with standby controlfile.
    my question:what is wrong with my steps? and how to restore my (prod) controlfile from standby.and bring backup my prod db.
    regards
    farukHi Faruk,
    Sorry my late.
    I can share with you my test.
    It is my standby  database, I connecting with RMAN
    SQL> select database_role, db_unique_name, name from  v$database;
    DATABASE_ROLE      DB_UNIQUE_NAME           NAME
    PHYSICAL STANDBY       stldb                    ADMDB
    [oracle@oel62-x64 oradata]$ rman target /
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Apr 23 12:23:00 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ADMDB (DBID=4063877183, not open)
    RMAN> backup current controlfile;
    Starting backup at 23-APR-13
    Starting implicit crosscheck backup at 23-APR-13
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=29 device type=DISK
    Finished implicit crosscheck backup at 23-APR-13
    Starting implicit crosscheck copy at 23-APR-13
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 23-APR-13
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 23-APR-13
    channel ORA_DISK_1: finished piece 1 at 23-APR-13
    piece handle=/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_04_23/o1_mf_ncnnf_TAG20130423T122310_8qdfq19x_.bkp tag=TAG20130423T122310 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 23-APR-13
    RMAN> exit
    Recovery Manager complete.
    [oracle@oel62-x64 oradata]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Apr 23 12:23:26 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> shut immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area  551165952 bytes
    Fixed Size              2230232 bytes
    Variable Size            167774248 bytes
    Database Buffers       377487360 bytes
    Redo Buffers              3674112 bytes
    SQL>
    SQL>
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@oel62-x64 oradata]$ rman target /
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Apr 23 12:34:58 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: ADMDB (not mounted)
    RMAN> restore controlfile  from '/u01/app/oracle/fast_recovery_area/stldb/STLDB/backupset/2013_04_23/o1_mf_ncnnf_TAG20130423T122310_8qdfq19x_.bkp';
    Starting restore at 23-APR-13
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    output file name=/u01/app/oracle/oradata/stldb/control01.ctl
    Finished restore at 23-APR-13
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> exit
    Recovery Manager complete.
    [oracle@oel62-x64 oradata]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Tue Apr 23 12:35:31 2013
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select database_role, db_unique_name, name from  v$database;
    DATABASE_ROLE      DB_UNIQUE_NAME           NAME
    PRIMARY       stldb                    ADMDB
    As show here, you can backup standby control file, and restore as primary .
    Regars
    Mahir M. Quluzade
    http://www.mahir-quluzade.com

  • Error During restoring a database through RMAN in Oracle 9i

    Hi all,
    I have taken a full backup in oracle 9i through RMAN in one server(Solaris).
    After that moved that backupset to another server. Server Locations are same. I need to restore the backup in the new server.
    I am using pfile.
    Steps I followed:
    1. Using pfile i have started the db in nomount.
    2. Then restored the controlfile from backup and mounted the database.
    3. then tried to restore the database - I have to restore three of my datafiles to different location, hence i used "set new name "
    But RMAN threw an error while restoring.
    RMAN-00558:
    RMAN-01009:
    File not found.
    Can anyone help to resolve this error.
    Thanks in Advance.

    Hi,
    Thanks, but I took the backup of the database using the command:
    backup database;Only this command i issued.
    In the new server, I tried to list the backup using list backup command by putting the db in mount stage.
    I m not able to view the backup information.
    Is there any command to register the backup information using the catalog?
    -

  • Error connecting to MySQL database using JNDI

    Hi,
    I'm trying to do a simple connection to a MySQL database using the JNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogic and got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database. I tried
    this with both the WebLogic's driver for MySQL and also the one I downloaded from
    MySQL (com.mysql.jdbc.Driver), and both failed with the same error message.
    Offhand, it doesn't look like the connection pool is failing. Tested it with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simple connection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    [att1.html]

    Hi Joe,
    Attached is the config.xml for the domain that I'm working with. There are 3 connection
    pools set-up.
    The problematic Connection Pools are "MySQLCP" and "My JDBC Connection Pool"
    Thanks for your help in this!
    Joe Weinstein <[email protected]> wrote:
    show us the pool definition, as it is in the config.xml file.
    thanks
    joe
    Everbright wrote:
    Hi,
    I'm trying to do a simple connection to a MySQL database using theJNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogicand got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database.I tried
    this with both the WebLogic's driver for MySQL and also the one I downloadedfrom
    MySQL (com.mysql.jdbc.Driver), and both failed with the same errormessage.
    Offhand, it doesn't look like the connection pool is failing. Testedit with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simpleconnection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    Error 500--Internal Server Error
    java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:MyJDBCConnection Pool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
    connectionPoolID=MyJDBC Connection Pool, dataSourceName=MyJDBC Data
    Source}.
    Nested Exception: java.lang.RuntimeException: Failed to Generate WrapperClass
         at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
         at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
         at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:242)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:158)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
         at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:395)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:448)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    [config.xml]

  • Restore sql database using c# code

    i need to restore ms sql database by selecting backup file in windows application...how to do it...?  thanx

    Hello,
    You can find a simple C#/VB.NET example to backup / restore a database in MSDN:
    Restore.SqlRestoreMethod
    And other example at CodeProject:
    Backup and Restore Databases using SMO
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Error while restoring oracle database by using brrestore command

    Dear Experts ,
    please check and give me your suggesitions on my issue
    now we are trying to restore my oracle database from prd to quality
    by using brrestore command
    and it is terminated with an error at persent 30 %
    error log
    BR0278E command output of 'LANG=C dd ibs=64k if=/dev/rmt/ocbn of=/oracle/QAS/sapdata1/sr1_11/sr1.data11';
    BR0359E Restore of /oracle/QAS/sapdata1/sr1_11/sr1.data11 from /dev/rmt/ocbn failed due to previous errors
    BR0406I End of file restore
    BR0404I brrestore terminated with errors
    Regards

    Ershad Ahmed wrote:
    Hi Swathi,
    >
    > Before performing the restore i would always restore control file from the backup to make sure that restore is working
    Hi,
    he already restored 30%, so I think we can safely assume at least some stuff did work.
    Allthough I agree that since the controlfile is saved last, this is a good test.
    Seems to be either a dirty tape (clean drive, repeat) or a faulty backup ( ugh ).
    When you retry after cleaning, you can use -f (fillup) to save the restore from retrieving the files it allready got.
    Check the initSID.sap for the backup  & restore commands and esp. the bs= / ibs= / obs= options.
    Volker

  • Error  While  Restoring  Rman database

    file names not getting convert..even after putting db_file_name_convert
    db_file_name_convert='/data1/oradata/UAT/','/opt/u02/app/oracle/oradata/oamnint'
    logfile_name_convert='/data2/oradata/UAT/','/opt/u02/app/oracle/oradata/omanint','/oracle/app/oracle/oradata/','/opt/u02/app/oracle/oradata/omanint'
    we use this parameter
    ORA-19502: write error on file "/data2/oradata/NUAT/undotbs01.dbf", block number 539328 (block size=8192)
    ORA-27072: File I/O error
    Additional information: 4
    Additional information: 539328
    Additional information: 249856
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00017 to /data2/oradata/UAT/DASCORE.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /opt/dbkp/rmanbackup01/rmanbkp_old/17ou0733_1_1_UAT_20140113
    channel ORA_AUX_DISK_1: piece handle=/opt/dbkp/rmanbackup01/rmanbkp_old/17ou0733_1_1_UAT_20140113 tag=TAG20140113T194559
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:26
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/15/2014 17:44:55
    RMAN-05501: aborting duplication of target database
    RMAN-05556: not all datafiles have backups that can be recovered to SCN 714518081
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Thanks.

    Is your UNDOTBS is in FS "/data2/oradata/NUAT/undotbs01.dbf" ? Did you convert this FS to new FS name? First error seems to be issue with this.
    Second issue is seems to be you dont valid backup for the  SCN 714518081. Pls give us the restore script and also check whether you have valid backups.

  • 404 error after restoring the database

    Friends, our dba team restored the Flows_030000 schema after a complete monthly refresh of our server (RMAN restore). Now when I try to access the APEX admin page or any of the applications it gives me a 404 error saying '/pls/apex/apex_admin/ was not found on this server'.
    I looked at the apache error log file and found the following
    mod_plsql: /pls/apex/apex_admin HTTP-404 ORA-04063: package body "FLOWS_030000.WWV_FLOW_SECURITY" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "FLOWS_030000.F", line 276
    ORA-06512: at "FLOWS_030000.APEX_ADMIN", line 5
    ORA-06512: at line 10.
    The RMAN refresh is a regular monthly process for us it was going smooth for the past one year ever since we deployed Apex 2.2. Last month we upgraded it to 3.0 and this is the first refresh after the upgrade.
    I feel it is most probably a priveleges issue. But not sure what it could be.
    Guys, any thoughts or any experiences facing the same kind of situation?

    You could do a new install in a different database and see what privileges the FLOWS_030000 schema has that were granted by SYS, for example (don't use these results):
    SQL> select granted_role from dba_role_privs where grantee='FLOWS_030000';
    GRANTED_ROLE
    SELECT_CATALOG_ROLE
    RESOURCE
    CONNECT
    SQL> select privilege from dba_sys_privs where grantee='FLOWS_030000';
    PRIVILEGE
    CREATE OPERATOR
    DROP ANY DIRECTORY
    CREATE PROCEDURE
    CREATE JOB
    CREATE ANY CONTEXT
    CREATE DIMENSION
    CREATE MATERIALIZED VIEW
    ALTER DATABASE
    CREATE ANY DIRECTORY
    CREATE VIEW
    CREATE CLUSTER
    DROP USER
    DROP TABLESPACE
    CREATE ROLE
    CREATE PUBLIC SYNONYM
    CREATE SYNONYM
    CREATE TABLE
    CREATE INDEXTYPE
    CREATE TRIGGER
    EXECUTE ANY PROCEDURE
    SELECT ANY TABLE
    CREATE USER
    CREATE DATABASE LINK
    CREATE SEQUENCE
    ALTER USER
    CREATE TABLESPACE
    ALTER SYSTEM
    DROP PUBLIC SYNONYM
    ALTER SESSION
    CREATE LIBRARY
    CREATE TYPE
    31 rows selected.
    SQL>
    SQL> select owner||':'||table_name||':'||privilege from dba_tab_privs where grantee='FLOWS_030000' and grantor='SYS';
    SYS:EXPORT_FILES_DEMO:WRITE
    SYS:EXPORT_FILES_DEMO:READ
    SYS:DBMS_REGISTRY:EXECUTE
    SYS:UTL_FILE:EXECUTE
    SYS:UTL_SMTP:EXECUTE
    SYS:UTL_HTTP:EXECUTE
    SYS:DBMS_LOB:EXECUTE
    SYS:DBMS_LOCK:EXECUTE
    SYS:DBMS_SYS_SQL:EXECUTE
    SYS:DBMS_FLASHBACK:EXECUTE
    SYS:DBMS_RLS:EXECUTE
    SYS:DBMS_CRYPTO:EXECUTE
    SYS:WWV_FLOW_VAL:EXECUTE
    SYS:SEG$:SELECT
    SYS:TS$:SELECT
    SYS:OBJ$:SELECT
    SYS:USER$:SELECT
    SYS:ARGUMENT$:SELECT
    SYS:V_$SQL_PLAN:SELECT
    SYS:V_$PROCESS:SELECT
    SYS:V_$SESSION:SELECT
    SYS:V_$LOCKED_OBJECT:SELECT
    SYS:V_$SESSTAT:SELECT
    SYS:V_$MYSTAT:SELECT
    SYS:V_$SYSSTAT:SELECT
    SYS:V_$STATNAME:SELECT
    SYS:V_$PARAMETER:SELECT
    SYS:V_$DATABASE:SELECT
    SYS:V_$SQL:SELECT
    SYS:V_$OPEN_CURSOR:SELECT
    SYS:V_$TIMER:SELECT
    SYS:V_$SESSION_WAIT:SELECT
    SYS:V_$SESS_IO:SELECT
    SYS:DBA_PROFILES:SELECT
    SYS:ALL_COL_COMMENTS:SELECT
    SYS:DBA_COL_COMMENTS:SELECT
    SYS:DBA_COL_PRIVS:SELECT
    SYS:DBA_DB_LINKS:SELECT
    SYS:DBA_INDEXES:SELECT
    SYS:ALL_IND_COLUMNS:SELECT
    SYS:DBA_IND_COLUMNS:SELECT
    SYS:ALL_OBJECTS:SELECT
    SYS:DBA_OBJECTS:SELECT
    SYS:DBA_ROLLBACK_SEGS:SELECT
    SYS:USER_ROLE_PRIVS:SELECT
    SYS:DBA_ROLE_PRIVS:SELECT
    SYS:USER_SYS_PRIVS:SELECT
    SYS:DBA_SYS_PRIVS:SELECT
    SYS:ALL_SEQUENCES:SELECT
    SYS:DBA_SEQUENCES:SELECT
    SYS:DBA_SYNONYMS:SELECT
    SYS:ALL_SYNONYMS:SELECT
    SYS:ALL_TABLES:SELECT
    SYS:DBA_TABLES:SELECT
    SYS:ALL_TAB_COLUMNS:SELECT
    SYS:DBA_TAB_COLUMNS:SELECT
    SYS:ALL_TAB_COMMENTS:SELECT
    SYS:DBA_TAB_COMMENTS:SELECT
    SYS:DBA_TAB_PRIVS:SELECT
    SYS:ALL_USERS:SELECT
    SYS:DBA_USERS:SELECT
    SYS:ALL_VIEWS:SELECT
    SYS:DBA_VIEWS:SELECT
    SYS:ALL_CONSTRAINTS:SELECT
    SYS:DBA_CONSTRAINTS:SELECT
    SYS:ALL_CONS_COLUMNS:SELECT
    SYS:DBA_CONS_COLUMNS:SELECT
    SYS:DBA_TYPES:SELECT
    SYS:DBA_RECYCLEBIN:SELECT
    SYS:DBA_LOCK:SELECT
    SYS:ALL_ERRORS:SELECT
    SYS:DBA_ERRORS:SELECT
    SYS:DBA_SOURCE:SELECT
    SYS:ALL_TRIGGERS:SELECT
    SYS:DBA_TRIGGERS:SELECT
    SYS:DBA_TRIGGER_COLS:SELECT
    SYS:ALL_DEPENDENCIES:SELECT
    SYS:DBA_DEPENDENCIES:SELECT
    SYS:DBA_JOBS:SELECT
    SYS:DBA_SEGMENTS:SELECT
    SYS:DBA_EXTENTS:SELECT
    SYS:DBA_FREE_SPACE:SELECT
    SYS:DBA_DATA_FILES:SELECT
    SYS:DBA_TABLESPACES:SELECT
    SYS:DBA_RSRC_PLAN_DIRECTIVES:SELECT
    SYS:DBA_SNAPSHOTS:SELECT
    SYS:DBA_FEATURE_USAGE_STATISTICS:SELECT
    SYS:DBA_JAVA_POLICY:SELECT
    88 rows selected.
    SQL>
    You might want to do the same for FLOWS_FILES.
    Scott

  • Error while restoring an Appset using TCODE:UJBR

    Hi,
    I am trying to restore an Appset (which I took backup)using TCODE:UJBR. But evry time it throws me an error: Error Occured while creating Application RATE via admin API.
    Please suggest how to approach.
    Thanks

    Hi Deepti,
    Thanks for your response. I'm still getting errror even if I take the appset offline.
    every time I'm getting this error with different application names.
    I have also checked program UJA_DATA_CHECKER to check the data structure,evrything looks good.
    Please suggest where do I look..
    Thanks

  • Paraller Query Server Error while creating the database using DBCA on UNIX

    Hi All,
    I am try to create the database on UNIX PLATFORM database 11g R1.
    At the end of database creation using DBCA i got the errors:
    ORA-12801:error signaled in parallel query server P077
    ORA-00018: maximun number of sessions exceeded
    ORA-06512:at"SYS.UTL_RECOMP",line 760
    ORA-06512:at"SYS.UTL_RECOMP",line 773
    ORA-06512:at line 1
    Please suggest what can i do to remove this issue.
    Regards
    Girish Sharma

    user12104101 wrote:
    Hi All,
    I am try to create the database on UNIX PLATFORM database 11g R1.
    At the end of database creation using DBCA i got the errors:
    ORA-12801:error signaled in parallel query server P077
    ORA-00018: maximun number of sessions exceeded
    ORA-06512:at"SYS.UTL_RECOMP",line 760
    ORA-06512:at"SYS.UTL_RECOMP",line 773
    ORA-06512:at line 1
    Please suggest what can i do to remove this issue.
    Regards
    Girish SharmaIncrease value of SESSIONS(also processes) parameter as
    sqlplus "/as sysdba"
    show parameter sessions
    alter system set sessions =<new big value> scope=spfile;
    shutdown immediate;
    startup;

  • Error while insert into database using DB adpater for Field BLOB

    Hello All
    I am trying to tranfer data from Database A to Database B using Oracle DB adapter.
    Table of databse A contains field BLOB, which cotains the resume /doc file.After transformation in Database B format ,while invoking the DB adapter to insert, I am getting follwing error
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/u01/bpelvinc/product/10.1.3.1/OracleAS_1/bpel/domains/viapps/tmp/.bpel_ERecuit_Application_New_1.0_d1c2b2149a9e0c7c745279667ad1fc84.tmp/DB_APPL_111.wsdl [ DB_APPL_111_ptt::insert(RtmApplicantCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception.
    insert failed. Descriptor name: [DBAPPL111.RtmApplicant]. [Caused by: Error in encoded stream, got 2]
    ; nested exception is:
         ORABPEL-11616
    DBWriteInteractionSpec Execute Failed Exception.
    insert failed. Descriptor name: [DBAPPL111.RtmApplicant]. [Caused by: Error in encoded stream, got 2]
    Caused by Exception [TOPLINK-3001] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.ConversionException
    Exception Description: The object [xs:base64Binary 43524541544520544193B0D0A], of class [class java.lang.String], could not be converted to [class java.sql.Timestamp].
    Internal Exception: java.io.IOException: Error in encoded stream, got 2.
    </summary>
    </part><part name="detail"><detail>
    Exception Description: The object [xs:base64Binary 4352E616D65293B0D0A], of class [class java.lang.String], could not be converted to [class java.sql.Timestamp].
    Internal Exception: java.io.IOException: Error in encoded stream, got 2</detail>
    </part></bindingFault>
    Please let me know ,what are the possibilities.
    Thanks
    Satendra

    Hi...
    well... My flow goes like Pl/SQl ---> BPEL,
    Now PL/SQL code reads data from the Database A and Send it to BPEL which inserts into the Database B.
    with respest to above design, I found the problem in pl/sql block.
    Actually I am sending a BLOB field in the soap message. but some how pl/sql now ablt tot handle that or sending some wrong data.
    my question is how to send a blob filed data to bpel using pl/sql block. this the reasion I am getting above error.
    Thanks

  • Error while restoring the database in SQL DB.

    When I try to restore Sql backup file for my database in the process of ALM project migration process , but its throwing an error as follow:
    “System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing  database. (Microsoft.SqlServer.Smo)”
    My database in sql server 2008.
    Please let me know the solution and what can be the problem?

    Hi,
    Can you check with the Permissions
    ORA-15055: unable to connect to ASM instanceORA-01031: insufficient privileges>
    Anand

  • Error while exporting the database - using expdp

    Hello,
    I am trying to export the roger's schema ('scoala' database). I'm using:
    D:\oracle\product\10.2.0\db_1\BIN>expdp roger/mypass@scoala directory=D:\EXP
    ORTSCOALA dumpfile=scoala.dmp logfile=scoala.log
    Export: Release 10.2.0.1.0 - Production on Wednesday, 14 July, 2010 17:36:22
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-39087: directory name D:\EXPORTSCOALA is invalidWhy i got that directory is invalid? The directory exists on my D:\
    Thanks!

    This directory option is not a filesystem directory. but a database directory.
    Look up dba_directories view
    Example:
    SQL> create directory expdir as 'D:\EXPORTSCOALA';
    SQL> grant read, write on directory expdir to public;
    After that:
    expdp roger/mypass@scoala directory=*expdir* dumpfile=scoala.dmp logfile=scoala.log
    And of course, as always: Google is also your friend: http://download.oracle.com/docs/cd/B28359_01/server.111/b28319.pdf
    HTH,
    FJFranken
    My Blog: http://managingoracle.blogspot.com

  • Error in connecting to database using a datasource in a jsp file

    Dear SDN's,
    I have a program which retreives Data from the Employee table and displays on portal page.
    What i have done is,
    I have created a pageprocessor component, with 2 jsp files one is for data insert and other is for retriving the data from the database table.
    For inserting the records, i have written the code in the Even handling method of Page Proceessor component.
    For retriving the data i have written the following jsp code in the jsp file and this i am calling in PBO of pageprocessor component based on the condition.
    When i try to insert the records it is working fine.But i am getting an error when try to execute the retreving the records in other jsp.
    Please go through the following code and correct me if anything is wrong here.
    <b><%@ page language="java" %>
    <%@ page import ="java.lang.*,java.sql.Connection,javax.sql.DataSource,java.sql.Statement,java.sql.ResultSet,javax.naming.InitialContext" %>
    <body>
    <center>
         <table border="1">
         <tr cellpadding="1">
         <th>Empid</th>
         <th>Name</th>
         <th>City</th>
         </tr>
    <%
         InitialContext initialContext = new InitialContext();
         DataSource ds = (DataSource) initialContext.lookup("jdbc/MyDS");
         Connection conn = ds.getConnection();
         stmt = conn.createStatement();     
         ResultSet rs=stmt.executeQuery("select * from EMP_DETAILS");
         while(rs.next())
              out.println(rs.getString("EMPID"));
              out.println(rs.getString("NAME"));
              out.println(rs.getString("CITY"));
         %>
         <tr cellpadding="1">
              <td><%=rs.getString("EMPID")%></TD>
              <TD><%=rs.getString("NAME")%></td>
              <td><%=rs.getString("CITY")%></td>
              <br>
              </table>
              catch (Exception e) {                    
         e.printStackTrace();
         out.println("Exception" + e);     
              }</b>
    The error what i am getting is.
      Portal Runtime Error
    An exception occurred while processing a request for :
    iView : JSPdbProject.Empjava
    Component Name : JSPdbProject.Empjava
    Error occurs during the rendering of jsp component.
    Exception id: 04:29_16/11/06_0005_507480350
    See the details for the exception ID in the log file

    Hi Sumathi,
    here is the error log.
    #1.5#0017087C79D800760000004700001C000004225B24927786#1163674757780#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#J2EE_ADMIN#10231##OBTDEV15_O50_507480350#J2EE_ADMIN#6afb6760756111dbaf3c0017087c79d8#SAPEngine_Application_Thread[impl:3]_24##0#0#Error#1#/System/Server#Java###Exception ID:04:29_16/11/06_0005_507480350
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : JSPdbProject.Empjava
    Component class : Empjava
    User : J2EE_ADMIN
         at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
         at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
         at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:116)
         at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
         at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
         ... 38 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
         at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
         at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
         ... 41 more
    Thanks,
    sireesha.B

Maybe you are looking for

  • Firefox 5.0.1 Sync is not working even after info replaced and device added again.

    No errors were displayed so I followed guidance in articles "Firefox Sync is not working" (Uninstalled Sync add-on, updated Firefox on all devices, and Replaced Sync data) and "Replace your Sync information" which worked to get identical bookmarks on

  • Can't drill on column header

    <p>When viewing any report from this one specific client machine,we can't drill down on any column header. It's not the report sincewe can drill down on the headers from other machines and that wouldalso rule out user preferences, so we're not sure w

  • Captivate 7 Web Object Not Scrolling on iPad

    I've inserted a web object in to my project and filled it with text so that it requires scrolling. The project has been published as HTML5 with no scalable HTML content. Scrolling works fine on PC but not on iPad (iOS 7). I'm guessing that this is do

  • Editing photos and videos

    No I edited the photos in camera roll only and edited photos and videos are not shown in my computer only unedited photos are displayed and iam not getting slow motion videos also in computer. And what is this photo stream am totally unaware of it. P

  • How do I upload video clips from camera onto icloud

    How do I upload videos taken from my camera which are on my laptop to iCloud?