Drop tablespace and flashback : ORA-01245: offline file 7 will be lost if RESETLOGS is done

Hello,
    1 create tablespace TS1
    2  create restore point RP1;
    3 drop tablespace TS1 (datafile  '/c:/ts1.dbf')  including files
    4 restore database to RP1
    5 alter database open resetlogs failed with this error :
        ERROR at line 1:
  ORA-01245: offline file 7 will be lost if RESETLOGS is done
  ORA-01110: data file 7: '/c:/ts1.dbf'
   Can you help me please to fix this issue and to understand why it's occured.

Hi,
If you check the alert log you will get message similar to
Recovery deleting file #7:'<Oracle_Home>/db/dbs/UNNAMED00007' from controlfile.
Now you have 2 option
1. If you have backup of that tablespace TS1  then you can restore and recover it
If you don't need that tablespace then you offline drop that datafile 7 . Open the database in resetlogs mode and then drop tablespace TS1
Thank you

Similar Messages

  • When I try to update my iPod touch, a message saying there isn't enough space on my computer appears and all media on my iPod will be lost, should I proceed with the update?

    When I try to update my iPod touch, a message saying there isn't enough space on my computer appears and all media on my iPod will be lost, should I proceed with the update?
    My iTunes Library is on my computer, I have done a backup manually, and all of my music is on an external hard drive (as well as my iTunes library).

    Thanks a lot Recycle bin is empty, I will move some files from the C drive to an external hard drive, then do the update, and then move the files back. Any files you recommend not moving to the external hard drive at all?

  • Drop tablespace and recreate a new one!

    Hello All,
    One of my database(oracle 10g, aix server ) has a tablespace called tools for xample. its size is nearly 16g, but current usage is around 170 mb only. So i want to resize the tablespace size to 2G
    So what i did is, took export of tools tablespace and full database export backup separately. so in my hand i have, tools tablespace backup(export file) and whole database backup(took using again exp utility)
    Now i tried to drop the tools tablespace and got this error
    SQL> DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATAFILES;
    DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATAFILES
    ERROR at line 1:
    ORA-29857: domain indexes and/or secondary objects exist in the tablespace.
    so i also planned, instead of dropping the tablespace, i thought of removing objects in the tablespace and resize it and import using the backup what i have.
    when i query the tablespace, i got 4 object. index, tables, lobindex and lobsegment.
    i wrote script to drop indexes and tables.but dint execute yet.
    how to remove/move lobindex and lobsegment, so that i can resize the tools tablespace?
    anyone has come across this issue? or any other method is there to over come this issue?
    Please provide detailed step if you have so.
    Regards,
    Pradeep. V

    Hi Nicolas,
    Kindly explain this point
    Step 2 above, move lob... check USER_LOBS to get the corresponding table/column from your lob_Segment...
    what query i need to use to find user_lobs,
    is this the query you saying about?
    select * from user_lobs where tablespace_name='TOOLS';
    it dint return any rows

  • Unable to drag and drop mp4 movies into itunes but the file will import and play using home sharing

    Strange problem with my brothers MacBook.
    The movie files were converted to mp4 format ready to be played on an iphone and I imported them into my iTunes on an iMac with no problems.
    Files were also saved onto a flash drive which I passed on to my brother.
    My brother was unable to import files by drag and drop and also by "add to library", we even copied and pasted files from the flash drive to the desktop but that also didn't work.
    Using "home sharing the movies imported and played with no problems.
    Any ideas why this is happening?

    This appears to be a long-standing bug:
    https://bugzilla.mozilla.org/show_bug.cgi?id=634720
    and the accepted workaround is stated in comment 11.
    Oddly, it's possible to do the reverse, i.e. drag multiple eml files from Explorer to a TB folder.

  • Installing Windows 7 via Bootcamp and it freezes at expanding files (will freeze at random% for sure)

    Hello there,
    I have my Macbook Pro 13'' (mid 2012 version) updated to the latest IOS 10.7.5. But when i tried to install Windows 7 64bits with bootcamp by
    following as exactly the latest bootcamp guide, during the Windows 7 installation, expanding files, it will freezes at a random% for sure, i've several times
    and still encountering the same problems, is there any other way to fix this? I really need my Windows 7 installed.
    Many thanks, and happy holiday for those who reads this.
    Apologize for my crappy english.

    You may have some sort of issue with the install disc? I might try a different disc - even just try burning a new disc from the old? (I'm not sure how if that would work - don't know much about Windows installation media - but I'm sure that you could download Windows 7 from the Internet as an .iso image and burn that to disc, then use your activation key?).
    BUMP!
    Clinton
    *been having my share of spiced-up eggnog tonight*

  • I did iPad update and now my Adobe pdf files will not open!

    My update on iPad now wont open Adobe pdf files. Help...

    So far just realtracs email pdf. I can try a stand alone. I think that will open. I will try to send you a screen shot.
    Joni
    Joni Miller, ABR, SFR, MDI, Realtor
    Parks
    4025 Hillsboro Road, Suite 601
    Nashville, TN 37215
    615.383.6600 (Office)
    615.383.2151 (Fax)
    615.390.1496 (Mobile)
    [email protected]
    http://www.bobparks.com/agents/jonimiller

  • Excluding tablespace from flashback database

    hi all
    i am trying to flashback database with excluding users tablespace ,
    after setting tablespace users flashback off, and taking the tablespace users offline i shutdown the database immediate and startup mount exclusive and then
    sql>flashback database to timestamp to_timestamp ('03/07/200722:04:00','dd/mm/yyyy hh24:mi:ss');
    but i am getting error
    ora-38795 warning flashback succeeded but open resetlogs would get error
    ora-01245 offline file4 will be lost if resetlogs is done.
    can you help me , where is my mistake.

    Since you have turned off the flashback on the USER tablespace, you have got those errors while performing FLASHBACK DATABASE operation.
    Database must be opened with RESETLOGS option after the FLASHABCK DATABASE operation.
    ora-01245 offline file4 will be lost if resetlogs is done.You might loose here the datafile belongs to the users tablespace.
    If you don't required this tablespace, I guess you can goahead using open database with RESETLOGS option.
    Jaffar

  • What is the difference between undo tablespace and online redo log files.

    what is the difference between undo tablespace and online redo log files. I am confused
    as per my knowledge undo tablespace is used to store the undo information when a table is being updated so that, just incase we need to rollback a transaction we know what was present in the table earlier.
    when a transaction fails the SMON performs the rollback of the data.
    This undo data is stored in the undo tablespace and read consistency if any is enforced.
    is my understanding till here correct?
    Now, can this undo data/before image not be stored in the redo log buffer and online redolog files?
    can redo-log files not store this information?
    in fact, is it that when undo tablespaces exist in a database, the undo data/before image is stored in both the undo tablespace and also the redo log files?
    kindly clarify my doubt.
    thank you.

    This question has been asked many times before. The answer is always the same.
    Yes, redo contains the before image of data (and the after-image). Therefore, it **COULD** be used to roll back a transaction.
    BUT... Redo is written sequentially. Using it to rollback your transaction would involve reading through all the redo written by maybe thousands of other people. It would be painfully slow.
    Your transaction is, however, directly linked to just the UNDO that it generates (which is JUST the before image of the data). So, your undo is your undo and doesn't share space with anyone else's undo. Therefore, using it to roll back YOUR transaction is fast.
    The fact that undo is only the before image of the data also makes it faster than wading through a sea of before and AFTER images as you'd find in redo. About twice as fast, in fact, since there's half the data. Roughly.
    Redo also gets written and flushed to disk whenever there's a commit, 3 seconds are up or too much (1MB, actually) redo gets generated between flushes caused by other factors. Your redo gets flushed when those things happen, even if you haven't actually committed your transaction. And redo logs recycle themselves, meaning that your redo -even if your transaction hasn't been committed yet- can be over-written by later transactions. Try rolling back when that's happened, if redo was the source of your rollback data!
    Undo, however, cannot be over-written if the transaction has not been committed. Ever. If you don't commit for three years, there will be three years' undo stored in your database (assuming you had the space, of course!).
    I could go on, but that will do. Redo is there fore RECOVERY, after catastrophe. Undo is there for read-consistency (and the occasional change of mind). Two different functions. Two different mechanisms. Each one highly tuned to doing what it does, why it does it, most efficiently and effectively.

  • Causes of ORA-01200: actual file size of x is smaller than correct size n ?

    Hello everyone
    We are running Oracle 11.2.0.3 64-bit E/E on Oracle Linux 6.2 with UEK R2 on X64.
    Using Grid and ASM 11.2.0.3 and OMF names.
    The database files are alll on SAN, the SAN vendor name not disclosed here to protect the innocent/guilty 8^)
    I have a Test database MYDB (in NOARCHIVELOG mode) and after a normal server reboot, not a crash, the following error occured on Oracle database startup.
    srvctl start database -d MYDB
    PRCR-1079 : Failed to start resource ora.mydb.db
    CRS-5017: The resource action "ora.mydb.db start" encountered the following error:
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1: '+ASMDATA/mydb/datafile/system.256.787848913' <<<<<<<<<<---------------------------------------------------- Corrupt file on ASM disk, system tablespace this time
    ORA-01200: actual file size of 94720 is smaller than correct size of 98560 blocks <<<<<<<<<<---------------------------------------------------- ERROR message
    The ASM disks are all up and disk groups are mounted OK. The ASM protection level is EXTERNAL.
    My understanding that the only proper recovery from the above error is to use RMAN Restore Database/File/Tablespace.etc (and then RMAN Recover, when in ArchiveLog mode).
    I do have RMAN disk backups, so I don't need to "patch" the database to recover.
    This is not my question at this point in time.
    My Question is this : what are the most likely causes of such error?
    Oracle Database bug? OS bug? Disk driver error? Server hardware failure (bus, memory, etc)? Or a SAN bug?
    I expect that Oracle 11g R2 will always come up with the database "clean" if the server reboots or if server crashes (i.e. due to complete power failure) provided the actual storage is not physically damaged.
    Our SAN vendor (no names!) says they are of the opinion that it's most likely Oracle database or Oracle Linux 6.x/UEK software bug, or probably Oracle ASM 11.2 bug.
    We have opened a support call with Oracle.....
    My personal experience dealing with similar database errors on more recent releases of Oracle (9i R2, 10g R2, 11g R2) and also MS-SQL 2005 and 2008 R2 suggests this kind of a problem is most likely related to errors/bugs in storage/drivers/firmware/BIOS and SAN and not likely to be a 'database' or O/S bug.
    Perhaps you, good people on this forum, can share their experiences, as unbiased as you can?
    Many thanks

    Ive seen Ora-1200 twice I think over the years, both times there was disk problems which led to write issues which caused file problems, youve reported no such issues on your side though so if thats actually true, Im thinking bug.

  • Disable Offline Files

    Am trying to devise a package to push to W2K (fully-patched) workstations
    that will disable Offline Files (in Windows Explorer, Tools - Folder
    Options - Offline Files tab - uncheck Enable Offline Files). It turns out
    that it is not an easy, quick reghack. Additionally, we "lock down" our
    users, users are USERS and not administrator-equivalent. We are using
    client 4.91 with mixed SP1 and SP2. We use ZEN 3.2 SP3. Server is NetWare
    6.5 SP?
    The following regkeys are part of the disabling process:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Applets\SysTray]
    "Services"=dword:00000017
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\NetCache]
    "DefCacheSize"=dword:00000415
    "Enabled"=dword:00000000
    However, just using those keys don't disable the feature (if you enter
    these, it doesn't disable the function - the function stays retained).
    I found the following additional information:
    C:\Winnt\CSC is a hidden directory, and when you Enable Offline Files, 2
    "system" files are created (if they didn't exist) - 00000001 and 00000002.
    You can delete 00000002 anytime, but not 00000001 unless you disable
    Offline Files. You can not delete 00000001 unless you disable Offline Files.
    I can easily push out a reghack for just about any other program with no
    issues, but this is something else (and, nevertheless, frustrating).
    Problem: Just inserting the regkeys manually, clicking on the REG file, or
    pushing the keys via ZEN, does NOT disable the Offline Files option.
    QUESTION: Has anyone used ZEN to successfully push out a method to disable
    Offline Files, and if yes, what is needed to disable that functionality?
    Thank you.

    Use a Group Policy:
    \Computer Configuration\Administrative Templates\Network\Offline Files\Allow
    or Disallow use of the Offline Files feature
    Craig Wilson
    Novell Product Support Forum Sysop
    Master CNE, MCSE 2003, CCNA
    Editor - http://www.ithowto.com
    (Seeking Full-Time Expert? Drop me a note :> )
    <[email protected]> wrote in message
    news:[email protected]...
    > Am trying to devise a package to push to W2K (fully-patched) workstations
    > that will disable Offline Files (in Windows Explorer, Tools - Folder
    > Options - Offline Files tab - uncheck Enable Offline Files). It turns out
    > that it is not an easy, quick reghack. Additionally, we "lock down" our
    > users, users are USERS and not administrator-equivalent. We are using
    > client 4.91 with mixed SP1 and SP2. We use ZEN 3.2 SP3. Server is
    > NetWare
    > 6.5 SP?
    >
    > The following regkeys are part of the disabling process:
    >
    > **************************************
    >
    > [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Applets\SysTray]
    > "Services"=dword:00000017
    >
    > [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\NetCache]
    > "DefCacheSize"=dword:00000415
    > "Enabled"=dword:00000000
    >
    > **************************************
    >
    > However, just using those keys don't disable the feature (if you enter
    > these, it doesn't disable the function - the function stays retained).
    >
    > I found the following additional information:
    >
    > C:\Winnt\CSC is a hidden directory, and when you Enable Offline Files, 2
    > "system" files are created (if they didn't exist) - 00000001 and 00000002.
    > You can delete 00000002 anytime, but not 00000001 unless you disable
    > Offline Files. You can not delete 00000001 unless you disable Offline
    > Files.
    >
    > I can easily push out a reghack for just about any other program with no
    > issues, but this is something else (and, nevertheless, frustrating).
    >
    > Problem: Just inserting the regkeys manually, clicking on the REG file, or
    > pushing the keys via ZEN, does NOT disable the Offline Files option.
    >
    > QUESTION: Has anyone used ZEN to successfully push out a method to disable
    > Offline Files, and if yes, what is needed to disable that functionality?
    >
    > Thank you.
    >
    >

  • Restore the dropped tablespace using RMAN?

    Hello,
    I have done a oracle tablespace re-org for PSAPPOOLD,PSAPPOOLI. Now I want to restore only the OLD PSAPPOOLD,PSAPPOOLI tablespace using TAPE backup via RMAN. 
    The probelm is I have dropped the old tablespace during re-org which is a part of the re-org. Is it possible to restore the dropped tablespace using RMAN?
    My Oracle version is 9.2.05
    if anyone has done this before, please share your valuable ideas.
    I wrote the below script for the restore.
    run {
    allocate channel ch1 type sbt_tape;
    startup nomount
    restore controlfile; -
    >(I guess,if I restore old control file, I might get old structure which help the restore of TB)
    alter database mount ;
    restore tablespace PSAPPOOLD,PSAPPOOLI;
    recover tablespace PSAPPOOLD,PSAPPOOLI;;
    release channel ch1;
    Thanks,
    Arjun
    Edited by: Arjun Venkateswarlu on Jul 31, 2009 6:40 PM

    > I have done a oracle tablespace re-org for PSAPPOOLD,PSAPPOOLI. Now I want to restore only the OLD PSAPPOOLD,PSAPPOOLI tablespace using TAPE backup via RMAN. 
    >
    > The probelm is I have dropped the old tablespace during re-org which is a part of the re-org. Is it possible to restore the dropped tablespace using RMAN?
    Hello Arjun,
    why would you want to do this?
    What is is you want to achieve by this action?
    BTW: it's not possible to do that.
    Check [Performing RMAN Tablespace Point-in-Time Recovery|http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmtspit.htm].
    You want a "Tablespace point in time recovery" (TSPITR) for a dropped tablespace and that is just not possible with RMAN.
    So, the easiest way for you to get this tablespace back would be to restore and recover the database to a different host.
    Ah, while we're at it: using RMAN outside the BRTOOLS is not supported by SAP - so you better be a wiz with it because there won't be much help in case anything does not work.
    regards,
    Lars

  • Online material for tablespace and backup

    Hi All,
    As i am a beginner, can anyone please suggest me any online link for better understanding about tablespace and backup for a beginner.
    Thanks in advance
    Arun

    Hi, follow down a resume did for me in my blog:
    Creating Tablespaces Permanent, Temporary and UNDO in ORACLE
    Tablespace Datafiles is a set that contains the physical structure of the data storage system Operacional.Sendo thus tablespace is an allocation of space used to store objects of a given user. To create a tablespace in a database, the user will have to have the grant (permission) of Tablespace and Create to create the SYSAUX tablespace (beside SYSTEM, are the most important database), should have the grant of SYSDBA. A tablespace is a logical unit of database and that is part of the following structure:
    Database> Tablespace (logical drive)> Datafile (physical file)> Segments (logical drive Example: Tables)> Extents (set of blocks, logical drives) >> Blocks Bank Data (logical unit, a smaller structure database)> Blocks Operating System.
    In this article we will be focused on the following types of tablespaces : The permanent tablespaces, the tablespace temporary tablespace and Undo. However, it also will be elucidated creating tablespace with multiple datafiles at once.
    - Permanent Tablespaces: Contains a user objects in a database. These objects are stored in physical structures called Datafiles.
    SQL> create tablespace TBSEXEBRUNORS
    logging
    datafile '/ dbbruno/datafiles/datafile1.dbf'
    size 64m
    autoextend on
    next 64m maxsize 2048m
    Local extent management uniform size 1m; 2 3 4 5 6 7
    Tablespace created.
    Creating a Tablespace with multiple Datafiles at once:
    SQL> create tablespace TBSMISCBRUNORS
    datafile '/ dbbruno/datafiles/datafile2.dbf' size 4M
    '/ Dbbruno/datafiles/datafile3.dbf' size 4M
    '/ Dbbruno/datafiles/datafile4.dbf' size 4M
    logging
    extent management site; 2 3 4 5 6
    Tablespace created.
    It follows a consultation in view DBA_TABLESPACES:
    SQL> SET PAGESIZE 180
    SQL> SET linesize 180
    SQL> SELECT * FROM WHERE DBA_TABLESPACES tablespace_name = 'TBSEXEMPLO' order by 1,2;
    Tablespace_name BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN
    ALLOCATIO PLU segments DEF_TAB_ RETENTION BIG PREDICA ENC COMPRESS_FOR
    TBSEXEMPLO 8192 65536 1 2147483645 2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL
    NO SYSTEM AUTO DISABLED NOT APPLY IN THE HOST
    - Clause for managing EXTENTS
    The autoallocate clause specifies that the tablespace is managed by ORACLE , and that users can not specify sizes. Moreover, this clause is not allowed to UNDO tablespaces or Temporary. However, the clause UNIFORM specifies that the tablespace is managed by a user (you can specify sizes) via byte sizes, the default 1M (megabyte) to use this clause. Already the LOCAL clause specifies that the tablespace is locally managed and some part of the tablespace is reserved for Bitmap, which is the DEFAULT option for the type of permanent tablespace. But the DICTIONARY clause specifies that you want the tablespace is managed using the data dictionary.
    - Management of SEGMENTS clause
    The AUTO clause specifies that you want the ORACLE control the free space of segments in the tablespace using BITMAPS. When making use of this option, ORACLE ignores any storage specification later this tablespace. ORACLE strongly recommends using this option. However, this option should only be used in permanent and never tablespaces in a tablespace SYSTEM. However, the clause MANUAL option is not recommended by Oracle, specifies that you want the ORACLE control the free space of segments in the tablespace using freelists (PCTUSED, FREELIST, FREELIST GROUPS).
    - Temporary Tablespaces: Contains temporary data for a given session for a given period of time. Furthermore, this type of tablespace tempfiles and have no, Datafiles. This tablespace is used when a user, to which was assigned temporary tablespace, begins operations. Thus, the tablespace temporary stores temporary data used in transactions of users.
    SQL> create temporary tablespace TEMPEXEBRUNORS
    tempfile '/ dbbruno/datafiles/tempfile1.dbf'
    size 128m
    autoextend on
    next 32m maxsize 2048m
    extent management site; 2 3 4 5 6
    Tablespace created.
    - UNDO Tablespaces or Tablespaces Undo: Tablespace used for operations redone, so that objects can not be created in this tablespace. When this tablespace is created, the ORACLE tablespace SYSTEM takes for you to make such operations. However, the default is to always create an UNDO tablespace when creating the database, so that it is in the mode of automatic undo management.
    SQL> create undo tablespace TBSUNDOBRUNORS
    datafile '/ dbbruno/datafiles/tbs_datafileundobrunors_1.dbf "
    size 200M; 2 3
    Tablespace created.
    It follows a consultation in view DBA_TABLESPACES:
    SQL> SET PAGESIZE 180
    SET linesize 180
    SELECT tablespace_name, STATUS, RETENTION, SEGMENT_SPACE_MANAGEMENT, EXTENT_MANAGEMENT, INITIAL_EXTENT DBA_TABLESPACES FROM WHERE tablespace_name = 'TBSUNDOBRUNORS' order by 1,2; SQL> SQL>
    STATUS tablespace_name RETENTION segments EXTENT_MAN INITIAL_EXTENT
    TBSUNDOBRUNORS NOGUARANTEE MANUAL ONLINE LOCAL 65,536
    - Clause for retaining segments
    The RETENTION GUARANTEE clause specifies that the data store should ORACLE undo expired, even though current operations return fails due to lack of space. This option can be useful in operations FLASHBACK (which is a "flashback" to obtain, for example, the value from a table that was deleted and it is necessary to know the value of that in a certain period). However, the provision RETENTION NOGUARANTEE (as above) specifies that the ORACLE data undo may replace expired undo by new data being processed due to the operations in the current environment, this being the provision pattern.
    I hope I helped, hugs!!
    References:
    http://brunors.com/?p=208

  • Win7 Offline Files sync error after upgrade to Lion Server 10.7.2

    Symptom: client is a Win7 laptop, the server is Mac OS X 10.7.3 Lion Server with SMB and AFP shares. Win7 Offline Files stopped working after I upgraded Snow Leopard (non-server version) to Lion Server 10.7.2. After updating to 10.7.3, the problem persists. When syncing, it gives thounsands of error like this: The process cannot access the file because it is being used by another process. WinXP clients are fine with the Offline Files function though.
    I Googled and studied online for several days now and it might be related to the "Oppurtunistic Locking", or "Oplocks" for short, in the SMB protocol. Since Apple has re-written Samba, there's no "smb.conf" anymore to change the Oplocks setting. Maybe it's possible to change the setting in "com.apple.smb.server.plist"?
    From the Internet:
    1. Oplocks should be DISABLED on the server if there is any other file sharing protocol (AFP, etc.) other than SMB.
    2. Offline Files will NOT work properly if Oplocks is disabled on the server side.
    3. It was possible to config oplocks setting in smb.conf in Mac OS X versions prior to Lion but now there's no such config file.
    My Question:
    1. Does anyone else have similar problems?
    2. Is it related to the Oppurtunistic Locking thing?
    3. Is Oppurtunistic Locking enabled or disabled in Lion Server by default?
    4. If it's related to Oplocks, how can I change the setting on the server?
    5. I've noticed that the authentication from Windows PCs to the SMB share on the Lion Server is much slower then in SL. Could this somehow be related to my problem?
    Thanks for your time! :-D

    Any luck getting the info on SMBX parameters like OPLOCKS ? This is apparently causing an issue with Autodesk Revit. I am resorting to installing SMBUP.
    There is an article that describes this method for altering the Lion smbd configuration parameters for honoring ACLs:
    sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server AclsEnabled -bool NO
    from this article
    http://support.apple.com/kb/TS4149
    and this:
    http://www.stanford.edu/group/macosxsig/blog/2011/08/enable-logging-with-107-smb x-w.html

  • What should have in equal tnsnames,ora and listener.ora?

    Hi forum members again I'm very new in oracle, and I'm trying to create a sucessfull net service name, using oracle net configuration assitant, but when I try to test it I got this error, .***"""ORA-12514: TNS:listener does not currently know of service requested in connect descriptor."""*** And I have read that tnsnames.ora and listener.ora should have some parameters in common, but exactly I don't know, Do you know what parameters should be? or The ORA-12514 problem , doesn't have relation with the tnsnames.ora and listener files?, If doesn't wich is the reason of this message?
    By the way I put what contain these files:
    ---------------------------------------------------------------------------listener.ora
    # listener.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = oracle.gentoo)
    (ORACLE_HOME = /opt/oracle/product/10.1.0.3)
    (SID_NAME = oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    SAVE_CONFIG_ON_STOP_LISTENER = TRUE
    TRACE_LEVEL_LISTENER = USER
    /////////////////////////////////////////////////////////////////////////////tnsnames.ora
    # tnsnames.ora Network Configuration File: /opt/oracle/product/10.1.0.3/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    NORACLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = tux)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = noracle)
    By the way what must be the username and the pasword that ask the ORACLE CONFIGURATION ASSINTANT to test the net service name? Must be the user name and password of the system user?
    Thanks in advance

    OK, here we go ... extra long as I intend to bookmark this and make reference, as this is a very common question ... skip to the bottom if you want my guess to the solution.
    Oracle Net Services (formerly SQL*Net, Net8, Oracle Networking) has two parts - the client and the server side. I'll discuss the server first, then the client.
    1) Server, and specifically Listener:
    The Oracle Listener is a monitor that listens for Oracle service requests on one or more ports. Usually this is on TCP/IP port 1521. When it gets an Oracle request from any network client, it checks whether it's in the list of Oracle Services for which it is monitoring. If found, it will contact that service, request a connection for the client, tell the service and client where and how to connect, and get itself out of the loop.
    Notes:
    a) It can listen on behalf of any number of services;
    b) A service can be a database instance, an EPG service (the DBMS_EPG is the replacement for Apache in the database in 10gR2), an external job, etc;
    c) One listener can listen on behalf of multiple database instances;
    d) The services can be listed in the LISTENER.ORA or they can self-register;
    e) If databases self-register, they use the initialization parameter LOCAL_LISTENER
    f) If self-registering, the listener should be up before the database
    g) Shutting down the listener will stop future connections, but has no impact on existing ones.
    One frequent point of confusion - a connection request on the local machine may loop out to the network and contact the listener, or it may bypass the listener entirely and use a bequeath adapter. The 'beq' connection is the 'normal' connection by "sqlplus / as sysdba" or "sqlplus system/manager" on the local machine (note that no @instance was used ... in *nix, that is derived from the $ORACLE_SID environment variable)
    In your listener.ora, you specify global_dbname=oracle.gentoo and sid_name=oracle. I assume therefore you can find an initoracle.ora or spfileoracle.ora somewhere on your system.
    2) Client:
    A client that wants to connect to an Oracle service uses the client side of the Oracle Net Services. The definition of client includes: any Oracle client utiltiy (SQLPlus, SQLLoad, Forms, Reports, etc.); an Oracle database instance that wants to make a external procedure call or a dblink; third party tools such as ODBC and JDBC.
    In SQL*Net version 1 the connection was made by specifying the target in the connect string ("user/password@host:listener_port:sid") and that is also used these days by many JDBC drivers, especially the Oracle Thin JDBC driver. Oracle's Easy connection mechanism uses a similar variant.
    Since SQL*Net Version 2, Oracle has supported the concept of alias translation. Basically it's very similar in concept to DNS - give it the name of the service and tell it where to find the translation table. The translation tables include TNSNAMES.ORA, ONAMES servers (deprecated in 10g), LDAP usng Oracle's OiD. The choice of translation table, and alternate order if the lookup fails in one, is stored in the SQLNET.ORA (if one exists).
    Assuming TNSNAMES.ORA, the chain of events is:
    - get the alias to look up (in your case NORACLE);
    - if the SQLNET.ORA has a DEFAULT_DOMAIN setting, (often =WORLD) append a dot and that value to the alias;
    - go to the TNANSMES.ORA file pointed by the TNS_ADMIN variable (environment or registry), or (if not set) the one in the $ORACLE_HOME/network/admin directory;
    - look up the first occurance of the alias;
    - if found, use the protocol specified to request a connection to the host, usin DNS to unravel the host to an IP address if necessary (in your case TCP/IP, to TUX) ;
    - if host connection if made, connect to the listener that is configured for that port (in your case 1521);
    - if listener is there, ask it for connection to the service (in your case, you are asking for instance 'noracle');
    i if the listener knowwss about the service, it will hand off the request.
    Your problem appears to be asking for instance 'noracle' in the tnsnames but listeneing for 'oracle' at the listener. Of course, I can not see any auto-registered instances which you would get from "lsnrctl status" on the server.

  • Windows Offline Files / Sync Center - 99GB?? bug?

    Currently have a laptop connected to a domain where the user's My Documents folder is set up in Sync Center... while the laptop is on the network everything is fine and dandy, however once the user disconnects a good portion of the files and folder show
    a gray X indicating that they haven't sync'd over a local copy. When going into the 'Disk usage' tab for Sync Center, everything shows as 99GB used, 99GB available and the drive size is 999GB. If I do a manual sync I see that it fails due to not enough offline
    cache space. Attempts to change it with the 'Change size' button have failed as nothing shows up when I click on that button. Free disk space shows up as roughly 24GB free and Windows Scan Disk reveals nothing wrong with the drive. Help!

    Hi,
    Did this issue occur before ? Did the machines in the domain share the same issue with you?
    1.If the issue occured occasionally, I recommend you to  manually re-initialize the offline files database/client-side cache following this link:
    How to re-initialize the offline files cache and database in Windows XP (Win7 takes with the same path)
    https://support.microsoft.com/kb/230738?wa=wsignin1.0
    2.This issue may be caused by the group policy,please check the following policies according to the path.If you have no permission to change the policies ,please contact with your administrator.
    Here is the policies path:
    Computer Configuration\Administrative Templates\Network\Offline Files
    Limit disk space used by off line files
    Default cache size
    Prohibit user configuration of Offline files
    Here is the link for reference:
    Fixing OffLine File Cache Problems Using Group Policy
    http://www.falconitservices.com/support/KB/Lists/Posts/Post.aspx?ID=158 (link from official website would be better)
    NOTE: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
    3.If the issue persists, please check the Event Viewer for related error information.
    This path may be helpful:
    Event Viewer \Applications and Services\Microsoft\Windows\Offline Files
    Best regards 

Maybe you are looking for

  • Problems inserting flash movies with DW CS 3

    I just started playing with DW CS3 and I got a feeling I'm doing something wrong here but when I go place a Flash SWF in a Dreamweaver HTML page the Flash portion of the page is not showing up when the site is placed on a sever and looked at over the

  • GL vendor wise

    Hi all if i want to see one GL account......vndor wise ???  is there any tocde?? fbl3n is there i gave paritcular gl no , but here not showing all vendore relating to that parituclar gl a/c plz tell me urgent

  • HOw to know sandard edition or standard edition one

    Hi, I want to know my oracle software is standard edition or standard one edition. SQL> select * from v$version; BANNER Oracle Database 10g Release 10.2.0.3.0 - Production PL/SQL Release 10.2.0.3.0 - Production CORE    10.2.0.3.0      Production TNS

  • Access key for NetWeaver 2004s trial version

    Hi, I've installed the trial version of SAP NetWeaver 2004s. When I try to create a new function module, it asks for the access key. How and where can I get the access key for the trial version? Please help. Thanks Raam...

  • CRM integration possibility with gATP through ECC

    Hey Gurus, We would like to setup the integration between CRM (731), ECC (606) and gATP. But I will NOT setup gATP integration directly with CRM. But rather CRM sales order replicated in ECC, ECC should perform the ATP check by calling gATP. Afterwar