Detach Database: physical file permission

Hi All. I am using windows account to login which is Sysadmin of the SQL server.
when I detach a database, the physical file permission will only have one entry, which is my domain ID with full control.
it using another windows domain account which is also sysadmin would like to attach the database again: FAILED since access denied....
how to avoid this happenn ??

When you detach a DB, the ACLS are reset and the permission is given to the logged in windows account user - the full control on the DB files as expounded here:
https://msdn.microsoft.com/en-us/library/ms189128.aspx/html. You can circumvent your problem by using "EXECUTE AS Domain\[Attaching User]" before detaching the DB using sp_detach_db
(this will retain full CONTROL permission to the attaching user)
However, starting from SQL 2005, you can use a more graceful method of  moving files (on the same server) rather than using the attach/detach as shown below:
Take the DB offline
Move the physical files to the new location
Run the “ALTER DATABASE DBNAME MODIFY FILE (NAME  = logicalfilename, FILENAME =  physicalfilepath” command to provide the new path
Bring the DB online
However, if you are moving the DB to another server, then backup/restore will be best (you can use compression (SQL 2008 R2 standard edition or higher supports it) and this will move much faster than uncompressed MDF and LDF files
Satish Kartan www.sqlfood.com

Similar Messages

  • Managing&Auditing Database Physical files.

    Hi all,
    Sorry if I posted this issue in this forum.
    I have just this problem in monitoring and auditing oracle files and disk spaces in our Windows server.
    We have a server farm of around 20 Windows server, for global centralized test servers.
    Each server has different versions of Oracle DB, and maybe contain more than 10 database/intance (small test DBs).
    So we monitor around 200+ Databases.
    We run backup daily for each db using cold backup and maintain at least 1week retention files.
    We we have around 5x10x200 backup zip files.
    We also monitor all the Physical list of DB_home folders and it corresponding .dbf files and timestamp.
    What I did is map all the hardrive from each servers on my laptop to I can read all and audit all the physical files.
    I want to have a centralized list of the files associated with the database in spreadsheets and update it periodically.
    My question is how can I run a list cascade command that will list all the files and sub-directories and saved in in .csv or excel file?
    Is it like "ls -lt">list.log in linux.
    Thanks

    Please see the threads referenced in these links.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Images+AND+HRMS&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Images+AND+HR&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Error message: "Unable to open the physical file" when trying to attach AdventureWorks database

    I have searched the internet and this forum and have not found an answer...
    I am trying to install the AdventureWorks database into my single instance of MS SQL Server Express 2005.  I am logged into my machine as an administrator and logged into SQL Server 2005 express 'sa'.  I attempt to run the following script:
    exec sp_attach_db @dbname = N'AdventureWorks',
    @filename1 = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf',
    @filename2 = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_log.ldf'
    The error message I get back is:
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf". Operating system error 5: "5(Access is denied.)".
    The folder "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data" and all the files in it are read-write.  I am 100.0000% certain the files "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf" and "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\AdventureWorks_Log.ldf" exist!  They are the result of running the installation program AdventureWorksDB.msi, which I downloaded from: http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=4004.
    What do I have to do to install the AdventureWorkds database????

    Hello,
    To try to help you, please, could you give some more informations ?
    - the operating system (XP/Vista), the edition ( Pro/Home...) and the service pack
    - usually, the installer installs the both files in C:\Program Files\Microsoft Sql Server\Samples. Is there any change in the location or have you moved the both files ?
    - could you check with the files explorer , that the 2 files are read-write and not read only( find one file, right-click on it, properties and in the 1st tabpage, you should see a checkbox read-only ( if checked , unchecke it ) ?
    - have you Sql Server Management Studio Express Edition ( at least SP1 ) ?
    If no, download it and use it to attach
    in the object explorer,
    click on your instance to expand it
    right click on databases
    in the contextual menu, click on attach
    in the new form,click on add
    you arrive on a second form : find your file , click on it, and OK
    it's the simplest way to attach ( the sp_-attach_db is complicated to type )
    the error messages are sometimes more clear in SSMSEE than in Sqlcmd
    Try also to attach ( thru SSMSEE or Sqlcmd but in using the windows authentification )
    NB: i hope that you are not trying to attach AdventureWorks on a remote instance and on a remote computer ( it would explain access denied )
    We are waiting for your feedback to try to help you more efficiently
    Have a nice day

  • A file activation error occurred. The physical file name may be incorrect while creating database

    Hi Experts,
       I am trying to create a database in my local system, while creating i am getting error like below can anyone please help me on this.
    Msg 5105, Level 16, State 2, Line 1
    A file activation error occurred. The physical file name ' C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\NewData\Demo_dynamic.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation.
    Msg 1802, Level 16, State 1, Line 1
    CREATE DATABASE failed. Some file names listed could not be created. Check related errors. 
    Awaiting for the response......!! 
    Niraj Sevalkar

    I have created earlier database in 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA'
    but now i have created one newdata folder and trying to create in it also i have checked the path what have you suggested above and the NewData folder is existed please check below snapshot
    Both folders files and NewData folder which don't have any files 
    Niraj Sevalkar

  • Physical file of the "Database" object keep growing

    Hello,
    My Application is using BDB. Version 4.3.29.
    We are using the Database object for saving our byte array data to BDB(see the code below)
    The written data is initialized by: Byte[] Data = new byte[size].
    And we always use the same key for the insert operation. By the BDB API it should overwrite the existing entry, correct me if I’m wrong)
    The data size may vary, I.e. it can grow, or decrease.
    After monitoring the physical file that sits on dist, we have noticed that the physical file only grows, but never decrease its size. Even when the written data is of a 0 length.
    Please explain the issue. What are we doing wrong? Or what additional parameters should be used in order for the phisical file to change its size.i.e. decrease it.
    Thank you in advance.
    Shira Faigenbaum
    Opening the BDB:
    DataBase m_dataBase = m_DBEnv().openDatabase(transaction, tablePath + File.separator + m_name, null, m_DatabaseConfig);
    The code that we have, for the PUT operation:
    DatabaseEntry keyDbt = new DatabaseEntry(new byte[4]);
    keyDbt.setSize(4);
    keyDbt.setUserBuffer(4, true);
    keyDbt.setRecordNumber(DATA_KEY);
    DatabaseEntry dataDbt = new DatabaseEntry(data);
    dataDbt.setSize(data.length);
    dataDbt.setUserBuffer(length, true);
    synchronized (transaction)
    m_dataBase.put(transaction.getTransaction(), keyDbt, dataDbt);
    }

    Hi,
    There is a bit a lot of code, but here is the program.
    thanks
    Shira
    public class BDBsizeNotReducingExxample
         Environment m_dbEnv;
         private Database m_dataBase = null;
         private byte[] m_serializationBuffer = new byte[256];
         private Object m_data = null;
         public static void main(String[] args)
              BDBsizeNotReducingExxample DbsizeNotReducingExxample = new BDBsizeNotReducingExxample();
              DbsizeNotReducingExxample.opendbEnv();
              DbsizeNotReducingExxample.openDB();
              DbsizeNotReducingExxample.saveData();
         private void opendbEnv()
              try
                   EnvironmentConfig ec = new EnvironmentConfig();
                   ec.setCacheSize(16 * 1024 * 1024);
    ec.setErrorStream(new LogOutputStream());
    ec.setVerboseDeadlock(true);
                   ec.setVerboseWaitsFor(true);           
    ec.setVerboseRecovery(true);      
              ec.setMaxLockers(1024);
                   ec.setMaxLocks(100000);                ec.setMaxLockObjects(100000);               ec.setTxnMaxActive(20);
                   ec.setLogRegionSize(600 * 1024);     
    ec.setLockDetectMode(LockDetectMode.DEFAULT);
    ec.setAllowCreate(true);
                   ec.setTransactional(true);
              ec.setRunRecovery(true);          ec.setInitializeCache(true);
                   ec.setInitializeLocking(true);     ec.setInitializeLogging(true);
                   File f = new File("/Application/Persistency");
                   //open the environment try to open data base without fatal recovery
                   try
                        m_dbEnv = new Environment(f, ec);
                   catch (RunRecoveryException dbrre_1)
                        ec.setRunFatalRecovery(true);
                        m_dbEnv = new Environment(f, ec);
                   //archive and checkpoint at gatherer start up
                   CheckpointConfig cpc = new CheckpointConfig();
                   cpc.setForce(true);
                   m_dbEnv.checkpoint(cpc);
              catch (Exception e)
                   PersistencyUtils.handleFatalException(e);
         private class LogOutputStream extends OutputStream
              public void write(int b) throws IOException
                   //some clss just to print the errors
         private void openDB()
              DatabaseEntry keyDbt = new DatabaseEntry(new byte[4]);
         keyDbt.setSize(4);
         keyDbt.setUserBuffer(4, true);
         keyDbt.setRecordNumber(0);
         DatabaseEntry dataDbt = new DatabaseEntry();
         dataDbt.setReuseBuffer(false);
    try
         String tablePath = "/Application/Persistency/";
         DirUtil.mkdirs(new File(tablePath));
         PersistencyUtils.verifyFreeDiskSpace();
    Transaction transaction = m_dbEnv.beginTransaction(null, null);
    //DatabaseConfig use btree
    m_dataBase = m_dbEnv.openDatabase(transaction, tablePath + "/Data", null, PersistencyUtils.getDatabaseConfig());
    if (m_dataBase.get(transaction, keyDbt, dataDbt, null) != OperationStatus.SUCCESS)
         dataDbt = null;
    transaction.commit();
    catch (Exception e)
         PersistencyUtils.handleFatalException(e);
    if (dataDbt != null)
         byte[] data = dataDbt.getData();
         if (data != null)
              m_serializer.deserialize(m_data, data, 0, data.length);
    private void saveData()
    int length = m_serializer.serialize(m_data, m_serializationBuffer, 0);
    //this function changes the size of the m_serializationBuffer, increase and decrease its size!!!
    adjustSerializationBufferToTheRealLength(m_serializationBuffer, length);
    DatabaseEntry keyDbt = new DatabaseEntry(new byte[4]);
    keyDbt.setSize(4);
    keyDbt.setUserBuffer(4, true);
    keyDbt.setRecordNumber(0);
    DatabaseEntry dataDbt = new DatabaseEntry(m_serializationBuffer);
    dataDbt.setSize(length);
    dataDbt.setUserBuffer(length, true);
    synchronized (currentTransaction)
         m_dataBase.put(transaction.getTransaction(), keyDbt, dataDbt);
    }

  • Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    hi,
    am running the below command for moving sql serevr mdf and ldf files  from one  drive to another : c  drive to d drive:
    but am getting the below error
    SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\abc.mdf". Operating system error 2: "2(The system cannot find the file specified.)".
    use master
    DECLARE @DBName nvarchar(50)
    SET @DBName = 'CMP_143'
    DECLARE @RC int
    EXEC @RC = sp_detach_db @DBName
    DECLARE @NewPath nvarchar(1000)
    --SET @NewPath = 'E:\Data\Microsoft SQL Server\Data\';
    SET @NewPath = 'D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\';
    DECLARE @OldPath nvarchar(1000)
    SET @OldPath = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\';
    DECLARE @DBFileName nvarchar(100)
    SET @DBFileName = @DBName + '.mdf';
    DECLARE @LogFileName nvarchar(100)
    SET @LogFileName = @DBName + '_log.ldf';
    DECLARE @SRCData nvarchar(1000)
    SET @SRCData = @OldPath + @DBFileName;
    DECLARE @SRCLog nvarchar(1000)
    SET @SRCLog = @OldPath + @LogFileName;
    DECLARE @DESTData nvarchar(1000)
    SET @DESTData = @NewPath + @DBFileName;
    DECLARE @DESTLog nvarchar(1000)
    SET @DESTLog = @NewPath + @LogFileName;
    DECLARE @FILEPATH nvarchar(1000);
    DECLARE @LOGPATH nvarchar(1000);
    SET @FILEPATH = N'xcopy /Y "' + @SRCData + N'" "' + @NewPath + '"';
    SET @LOGPATH = N'xcopy /Y "' + @SRCLog + N'" "' + @NewPath + '"';
    exec xp_cmdshell @FILEPATH;
    exec xp_cmdshell @LOGPATH;
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    go
    can anyone pls help how to set the db offline. currently  i  stopped the sql server services from services.msc and started the  sql server agent.
    should i stop both services for moving from one drive to another?
    note: I tried teh below solution but this didint work:
    ALTER DATABASE <DBName> SET OFFLINE WITH ROLLBACK IMMEDIATE
    Update:
    now am getting the message :
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    (3 row(s) affected)
    (3 row(s) affected)
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)".

    First you should have checked the database mdf/ldf name and location by using the command
    Use CMP_143
    Go
    Sp_helpfile
    Looks like your database CMP_143 was successfully detached but mdf/ldf location or name was different that is why it did not get copied to target location.
    Database is already detached that’s why db offline failed
    Msg 15010, Level 16, State 1, Procedure sp_detach_db, Line 40
    The database 'CMP_143' does not exist. Supply a valid database name. To see available databases, use sys.databases.
    EXEC @RC = sp_attach_db @DBName, @DESTData, @DESTLog
    Attached step is failing as there is no mdf file
    Msg 5120, Level 16, State 101, Line 1
    Unable to open the physical file "D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\CMP_143.mdf". Operating system error 2: "2(The system cannot find the file specified.)"
    Solution:
    Search for the physical files(mdf/ldf) in the OS and copy to target location and the re-run sp_attach_db with right location and name of mdf/ldf.

  • Marketing Encyclopedia System : Where are the physical files located?

    Hello All,
    I've a Published Content (Oracle Marketing > Encyclopedia > Publish). A PDF File was attached under a particualr category/content type. The same shows up in 'My Published Items' in My Channels. The file opens fine when clicked on the link under the Category to which I attached this item.
    Can anyone help me find where is this file (the PDF that I attached into the item) stored in the system? Does it reside as a BLOB in a database table or does the file reside somewhere on the UNIX Box? Any pointers on getting to the physical location of the files attached would be greately appreciated.
    TIA.

    Hi,
    Portal Application components do not have any physical files. It is available as a package in the database. You can see it in the manage component screen. Clicking on the package body link will show you the whole package. You can copy this into a .SQL file and compile it later whenever you want, in the schema where the application is built.
    Hope that helps.
    Thanks,
    Sharmila

  • Filestream Creation Unable to Open Physical File Operating System Error 259

    Hey Everybody,
    I have run out of options supporting a customer that is having an error when creating a database with a file stream.  The error displayed is unable to open physical file operating system error 259 (No more data is available).  We're using a pretty
    standard creation SQL script that we aren't having issues with other customers:
    -- We are going to create our data paths for the filestreams.  
    DECLARE @data_path nvarchar(256);
    SET @data_path = (SELECT SUBSTRING(physical_name, 1, CHARINDEX(N'master.mdf', LOWER(physical_name)) - 1)
                      FROM master.sys.master_files
                      WHERE database_id = 1 AND file_id = 1);
    -- At this point, we should be able to create our database.  
    EXECUTE ('CREATE DATABASE AllTables
    ON PRIMARY
        NAME = AllTables_data
        ,FILENAME = ''' + @data_path + 'AllTables_data.mdf''
        ,SIZE = 10MB
        ,FILEGROWTH = 15%
    FILEGROUP FileStreamAll CONTAINS FILESTREAM DEFAULT
        NAME = FSAllTables
        ,FILENAME = ''' + @data_path + 'AllTablesFS''
    LOG ON
        NAME = AllTables_log
        ,FILENAME = ''' + @data_path + 'AllTables_log.ldf''
        ,SIZE = 5MB
        ,FILEGROWTH = 5MB
    GO
    We are using SQL Server 2014 Express.  File streams were enabled on the installation SQL Server.  The instance was created successfully and we are able to connect to the database through SSMS. The user is using an encrypted Sophos. 
    We have tried the following:
    1. Increasing the permissions of the SQL Server server to have full access to the folders.
    2. Attempted a restore of a blank database and it failed.
    There doesn't seem to be any knowledge base articles on this particular error and I am not sure what else I can do to resolve this.  Thanks in advance for any help!

    Hi Ryan,
    1)SQL Server(any version) can't be installed on encrypted drives. Please see a similar scenario in the following link
    https://ask.sqlservercentral.com/questions/115761/filestream-and-encrypted-drives.html
    2)I don't think there is any problem with permissions on the folder, if the user can create a database in the same folder. Am not too sure. Also see the article by
    Jacob on configuring the FILESTREAM for SQL Server that describes how to configure FILESTREAM access level & creating a FILESTREAM enabled database
    Hope this helps,
    Thanks
    Bhanu 

  • Physical files restoration

    Hello,
    Is it possible to setup a Test server par restoring (copying) the physical files from my production server? We are running Oracle 9i version2. In fact we have moved from one server to another , more powerful server. Now I would to make the old server a test server. I tried by doing en export/import but it is taking too much time.
    Please how can go about it and later be able to easly update the old server to the new.
    Thanks

    bezgodo wrote:
    we have change the physical server. So they migrate the oracle database from the old server to the new server. Both servers are running Oracle 9i version 2 and the OS is SUSE 9. The production database is having more datafile today and the file and folders structure are not the same as the old server. SO i want to copy the files from the new server to the old server that will be using as the TEST server.
    So could you provide me the steps by steps way to go about it.
    The main difference between the two database today is primarly their folder structure and the number of files in different tablespaces
    Thanks in advanceDirectory structure can be different both server ,do following steps.
    1.Take cold backup from production database .To doing this you need shutting down your database(production).
    Before shutting down database you have to identify all files(control,data,log)
    sqlplus "/as sysdba"
    /*identify controlfiles*/
    select name from v$controlfile;
    /*identify datafiles*/
    select name from v$datafile;
    /*identify logfiles*/
    select member from v$logfile
    shutdown immediate;2.Transfer these files(also you need copy pfile if you do not use pfile then
    create that from as pfile as create pfile='pfilelocation' from spfie ) to new server(using rsync or others ways)
    3.In new server edit pfile according new directories(change control_files,user and background_dump_dest,etc..)
    4.Startup database in new server as:
    export ORACLE_SID=<YOURSID>
    sqlplus "/as sysdba"
    startup mount pfile='pfile_location';
    /*Now you need change location datafiles/logfiles to new location*/
    alter database rename file <datafile_name_n> to 'new_transferred_location';
    alter database rename file <logfile_name_n> to 'new_transferred_location';
    alter database open;Other way you can using rman backup database and can restore this in new server as:
    1.Backup database in production server as:
    rman target /
    configure controlfile autobackup on;
    shutdown immediate;
    startup mount;
    backup database;2. then copy generated backup files to new server and:
    export ORACLE_SID=<YOURSID>
    rman target /
    startup nomount;
    restore restore spfile to pfile from  'autobackup_location'
    /*This bk file was generated first step*/
    /*then edit pfile according new directories(change control_files,
    user and background_dump_dest,etc..)*/
    shutdown immediate;
    startup nomount;
    restore controlfile from  'autobackup_location';
    alter database mount;
    catalog start with 'transferred_backup_location';
    restore database;
    recover database;
    alter database open; In additionally Total Questions:  13 (13 unresolved) .If your question has been answered then mark this as answered and mark your correct/helpful post

  • Alter Database Remove File : Partition Files on different folders

    I need to remove partition files, once I switch the partition with staging table and empty/truncate the partition. 
    When I was running the code on my local machine I was passing variable @partition_file_name to following statement:
    Declare @partition_file_name varchar(128)='table_abc_201202',
    @database_name varchar(128)='test'
    Alter Database @database_name Remove File  @partition_file_name
    Note @partition_file_name is the logical name of the partition file.
    I found out partitions are saved in different folders in my Dev env...They are stored in 12 different folders which are named like 1-12.
    E.g:
    C:\DATA\2\table_abc_201202.ndf
    C:\DATA\3\table_abc_201203.ndf
    C:\DATA\4\table_abc_201204.ndf
    C:\DATA\5\table_abc_201205.ndf
    C:\DATA\2\table_abc_201302.ndf
    C:\DATA\3\table_abc_201303.ndf
    C:\DATA\4\table_abc_201304.ndf
    C:\DATA\5\table_abc_201305.ndf
    I am wondering , is SQL server with Alter statement is capable of getting the right path for each partition files and remove them accordingly? Or do I need to pass the physical path to the alter statement to get it removed. Though I tried doing that and
    got the error.
    ZK

    I am wondering , is SQL server with Alter statement is capable of getting the right path for each partition files and remove them accordingly? Or do I need to pass the physical path to the alter statement to get it removed. Though I tried doing that and
    got the error.
    Yes, SQL Server knows which physical file goes with which logical filename.  (To see that SQL does know this, do a SELECT * FROM sys.sysfiles - you'll see SQL has a row for every logical filename and that row has the corresponding physical file name.)
    And when you do the ALTER DATABASE REMOVE FILE, you must specify the logical filename.  You will get an error if you give the physical path.
    Tom

  • How to find out where the tablespace physical file *.dbf ?

    How to find out where is my tablespace physical file *.dbf ?
    Can I increase tablespace_name: TEMP and how to increase it.
    First, I need to know where is the TMP *.pdf file, am I right?
    Thanks in advance

    This forum is for issues with the SQL Developer tool. You'd get more response in the General Database forum.
    Have fun,
    K.

  • Two TT instances  with same physical  files

    HI All,
    can we have two timesten instances sharing the same set of physical files like check point , log files .
    Node A
    Timesten instance1 running
    Node B
    Timesten Instance2 running
    both Timesten instances instance1,instnce2 with shared physical ( check point , log files )
    Please tell me above configuration is possible or not

    Can you please elaborate on the background to this question? Do you want to 'share' the files such that both instances can use them concurrently or is this related to some form of shared disk failover/HA mechanism?
    It is absolutely not possible to concurrently access the same set of datastore files from two different instances and in fact TimesTen goes to some lengths to prevent this. If you managed to circumvent this protection the result would be a totally corrupted database.
    It is possible to use shared disk failover with TimesTen though this is not at all an optimal way to implement HA with TimesTen. TimesTen replication is the recommended HA mechanism to use.
    Chris

  • Where are the Physical Files of Portal App (Forms,Reports,etc)

    Hi..
    We are developing our portal using Oracle Portal..
    We use the Portal form,report,link,url,dynamic page etc in our development.
    The case is,
    Our QA want to restrict the access to the file (version control).
    So, they want to do a backup/copy of the development files (form,report,dynamic page etc..) and if there are changes to the portal, they want to use the backup as the development files.
    The problem is,
    we not sure where the files are..
    We don't know where the forms,report,dynamic page are restored and what are they (.jsp?.cvf?.java?.fmb?.rdf?)
    Can anybody help?
    p/s Fyi,we also use jsp..so, we can see the physical files..e.g. index.jsp,login.jsp....but for the portal form,report,link????Where are their physical files?
    Thanks.

    Hi,
    Portal Application components do not have any physical files. It is available as a package in the database. You can see it in the manage component screen. Clicking on the package body link will show you the whole package. You can copy this into a .SQL file and compile it later whenever you want, in the schema where the application is built.
    Hope that helps.
    Thanks,
    Sharmila

  • Dynamic name physical file target

    Hi
    i have create logical file name with physical target name  : /appli/interfaces/<FILENAME>_<SYSID>.csv
    i want also add system time , date  in this name.
    anyone  cab help me
    thanks.

    This is exactly the same as for <FILENAME> and <SYSID>. Those are all reserved words. In transaction file on field Physical file click F1 help and you will see a list of all reserverd words you can use and are subsituted automatically.
    Here is part of the list:
    Reserved word        Word to be substituted           
    <OPSYS>              Operating system in call         
    <INSTANCE>           R/3 application instance         
    <SYSID>              R/3 application name in SY-SYSID 
    <DBSYS>              Database system in SY-DBSYS      
    <SAPRL>              R/3 release in SY-SAPRL          
    <HOST>               Host name in SY-HOST             
    <CLIENT>             Client in SY-MANDT               
    <LANGUAGE>           Log on language in SY-LANGU      
    <DATE>               Date in SY-DATUM                 
    <YEAR>               Year in SY-DATUM, 4-character    
    <SYEAR>              Year in SY-DATUM, 2-character    
    <MONTH>              Month in SY-DATUM                
    <DAY>                Day in SY-DATUM                  
    <WEEKDAY>            Day of the week in SY-FDAYW      
    <TIME>               Time in SY-UZEIT                 
    <STIME>              Hour and minute in SY-UZEIT      
    <HOUR>               Hour in SY-UZEIT                 
    <MINUTE>             Minute in SY-UZEIT               
    <SECOND>             Seconds in SY-UZEIT              
    <PARAM_1>            External parameter 1             
    <PARAM_2>            External parameter 2

  • TRACE FILE의 PERMISSION 조정하는 방법

    제품 : ORACLE SERVER
    작성날짜 : 1998-04-28
    제목
    ====
    oracle trace file 을 dba group 에 속하지 않는 user 들에게
    permission 을 허용하는 방법
    문제
    ====
    Oracle 의 모든 trace file 은 owner 가 oracle user, group 이
    dba 이고 640 permission 을 갖습니다.
    예를 들면, -rw-r----- oracle dba
    따라서, UNIX 에서는 $ORACLE_HOME/log 나 initSID.ora, configSID.ora 에
    지정된 directory 에 생성되는 모든 trace file 은 위의 permission 을
    갖기 때문에 dba group 에 속하지 않은 사용자들은 trace file 을
    access 할 수 없도록 되어 있습니다.
    해결
    ====
    tracefiles_public =true 라는 parameter 를 initSID.ora 에
    추가후 db restartup 하고, 일반 사용자들의 umask 를 000 으로
    setting 하시면 됩니다.
    1. cd $ORACLE_HOME/dbs
    2. UNIX,VMS 의 init<sid>.ora 에 다음을 추가하십시오.
    tracefiles_public=true
    3. save init<sid>.ora
    4. restartup database
    위 작업은 oracle trace file 이 trace 를 생성하는 사용자의 umask 에
    의해 trace file 의 permission 이 결정하도록 합니다.
    일반 사용자 가 OS prompt 상태에서
    $umask 000
    으로 한 다음 sql trace file 등을 생성하는 작업을 했을 때, 화일의
    permission 이 다음과 같이 생깁니다.
    -rw-rw-r-- 1 oracle dba 2945 Apr 16 10:11 ora_28494.trc
    즉, trace file 의 owner와 group 은 여전히 oracle, dba 이기 때문에, umask의
    세번째 field 가 0 이어야 dba group 이 아닌 일반 사용자 들이
    trace file 을 읽을 수 있습니다.
    참고
    ====
    재 기동 작업시에 다음 에러가 발생한다면, 위 파라미터의 spelling 등을 다시
    확인하십시오.
    ora-1078
    01078, 00000, "failure in processing system parameters"
    // *Cause:  Failure during processing of init.ora parameters during
    // system startup.
    // *Action:  Further diagnostic information should be in the errorstack. 
    lcc-122
    122, 0, "unrecognized keyword [%.*s]"
    // *Cause: You have misspelled the parameter name
    // *Action: Spell the parameter name correctly                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Adobe Photoshop Elements 2.0 wants to run using IE. How can I change it to Firefox?

    Adobe Photoshop Elements 2.0 wants to run using IE. How do I change it to Firefox? == This happened == Not sure how often == I installed Photoshop

  • Page numbering wrong when exporting to pdf

    I have a 340-page book, broken into about 40 chapters.  The chapters are set as the start of a section, and there are no section changes inside the chapters.  Theoretically, the pages should number consecutively throughout the book -- and they do, in

  • Frozen Form in B1 2007

    Hi guys, I have a tricky problem here. I just started to develop on SDK 2007. And now I'm stuck in my first problem. I made a Form in ScreenPainter. It contains a Grid Item.  Then I load the Form, like i did 2005. At first glance everthing looks fine

  • Wifi Problems OS X Mavericks

    I have Mavericks and when i connect my mac on my networks, I have internet only on my mac, and other Computers and Devices (PCs, iPhones) are connected, but they don't have internet. I must turn off my mac for have internet on my others devices. I ha

  • Error occurred (error code -8003).?

    I'm geting the above error code and the trash won't empty. Any ideas folks?