followed bulk block pl_sql activation

I have several DB in my store some file sytstem, ASM, some in different locations and some without active follow-up block.

I thought to call a PL/SQL block for the file name of the output system data and compound BCT file (path + name) name. For the ASM, I just use OMF and let him use his own name and for a FS, I thought to extract the name of the system, remove system.1074.812522197 and substituting block_tracking.bcf

That is to say

Select file_name in dba_data_files where nom_tablespace = 'SYSTEM '.

FILE_NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+DATA01/da01ici/datafile/system.1074.812522197

Can someone show me some PL/SQL on how to do the latest... Get the dirname and add my own basename so I can use it in the comand to activate the follow-up block because I don't want to put this under $ORACLE_HOME/dbs

Any help would be greatly appreciated...

First of all you code the procedure:

CREATE OR REPLACE PROCEDURE Enable_Blk_Trkng (P_Full_Name IN VARCHAR2)

AS

-SAYS

Full_Name VARCHAR2 (512);

Chemin_rep VARCHAR2 (256);

File_name VARCHAR2 (256);

Bare_Name VARCHAR2 (256);

I HAVE PLS_INTEGER;

Sql_Text VARCHAR2 (4000);

Bad_Name EXCEPTION;

PROCEDURE Parse_File_Name (F_Full_Name VARCHAR2)

IS

BEGIN

Full_Name: = F_Full_Name;

I: = INSTR (Full_Name, ' / ', - 1, 1);

Chemin_rep: = SUBSTR (Full_Name, 1, I - 1);

File_name: = SUBSTR (Full_Name, I + 1);

Bare_Name: = SUBSTR (File_Name, 1, INSTR (filename, ".")-1);

END;

--

-Home

--

BEGIN

Parse_File_Name (P_Full_Name);

IF SUBSTR (Full_Name, 1, 1) = "+".

THEN

Sql_Text: = "ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;

ELSIF SUBSTR (Full_Name, 1, 1) = ' / '.

THEN

Sql_Text: =.

"ALTER DATABASE ENABLE BLOCK CHANGE FOLLOWED FILE USING"' ".

|| Chemin_rep | '/' || Bare_Name | '.bcf "';

ON THE OTHER

RAISE Bad_Name;

END IF;

DBMS_OUTPUT. Put_line (' SQL text:' |) CHR (10) | Sql_Text);

-A comment to run:

-IMMEDIATE EXECUTION Sql_Text.

EXCEPTION

WHEN Bad_Name

THEN

Raise_Application_Error (-20001, 'unknown file format value =' |) Full_Name);

END;

/

-- -----------------------------------------------------------------------------

Then run you it:

DECLARE

Db_System_Dbf VARCHAR2 (256);

Db_Status VARCHAR2 (10);

BEGIN

SELECT the State IN Db_Status V$ block_Change_Tracking;

IF Db_Status! = 'ACTIVE '.

THEN

SELECT File_Name

IN Db_System_Dbf

FROM Dba_Data_Files

WHERE File_Id = 1;

Enable_Blk_Trkng (Db_System_Dbf);

END IF;

END;

/

Tags: Database

Similar Questions

  • Equivalent of PowerShell for script following VBScript determine the active node of the cluster?

    Hello world

    I wonder if there is another similar Powershell script that can determine the currently active node of an MSCS?

    What follows is done on VBScript

    strClusterWMINameString = "winmgmts:\\ExchangeServerCluster01\root\cimv2"
    Set objWMISvc = GetObject( strClusterWMINameString )
    Set colItems = objWMISvc.ExecQuery( "Select * from Win32_ComputerSystem", , 48 )
    For Each objItem in colItems
        strComputerName = objItem.Name
        WScript.Echo "The Cluster " & strClusterWMINameString & " active node is " & strComputerName
    Next
    
    
    

    Any kind of help is appreciated.

    Thank you.

    In PowerShell, you can do this with:

    (Get-WmiObject Win32_ComputerSystem - SIEXCLU01 of the computer). Name

    Best regards, Robert

  • Mobile lost blackBerry Smartphones, how to follow and block

    Hello

    I deleted data for torch 9800 to help to protect the service. However, not able to locate the phone. Pl help in blocking and localization.

    Just to make sure that we are all on the same page here, once you have deleted the data from your phone with BlackBerry Protect, you can not track via GPS because you have just wiped everything (including BlackBerry Protect) of the phone.

    I hope that clears up things.

  • iPhone 6 block stolen with IMEI.

    Hi so my iPhone 6a was stolen Friday - I usually find my iphone app and they sent me a location the next day - then I got an email saying my phones been erased.

    Now my question is how can I follow and block my iPhone by IMEI - here im wrestling does not go to my provider network or something like that. I want to go get my phone personally unattached.

    If you do not disable "Find my iPhone" on your device, it cannot be wiped out without knowing the Apple ID and password.

    When Activation lock is on, the phone can't set up again, using an ID different from Apple, that has been used to set up the phone the first time.

    iCloud: locking Activation

    The phone can not follow with the IMEI

  • While on internet, set Windows Firewall to 'block all '.

    Original title: Firewall Windows 'block all '.

    With the help of windows Firewall in Win7.

    Is there a way to easily set the firewall to 'Block All' (comings and goings) activity while I'm connected to the internet.

    I'm used to the use of 3rd party firewall and some have the choice of check "block all activity" on a right click of the icon 'taskbar '.

    I will use if go to leave the PC while on the net for more then a few seconds.

    I ask because firewalls 3rd party having this option does not work well with windows7.

    I don't want a process such as the control panel / advanced settings/unnecessary procedures / make / do that / go away/come back / freeze the system.

    Then having to do it all again in reverse to be reconnected.

    A simple one click / two click process that works.

    Anyone?

    Hello

    Thank you to provide us with an opportunity to help Microsoft Community, we are happy to help you.

    A firewall can help prevent hackers or malicious software (such as worms) to access your computer through a network or the Internet. A firewall can also help stop your computer from malware sent to other computers.

    If you want to block all connections using the Windows Firewall, please follow the steps mentioned below.

    1. Open the start menu.
    2. In the search box, search for "Windows Firewall".
    3. In the search results, select "Firewall with Advanced Security Windows".
    4. In the 'Présentation' section, check to see which profile is active. By default, it should 'private profile '.
    5. Click on the link marked "Windows Firewall properties.
    6. Select the tab 'private profile '.
    7. Make sure that "Firewall State" is set to "on (recommended)."
    8. Under "Incoming connections" click the menu drop down and select "Block all connections."
    9. Under "Outbound connections" click the menu drop down and select "block".
    10. Next to "Protected network connections", click on the button "Customize".
    11. Make sure all of the checkboxes are marked, especially 'Connection to the Local network' and 'Wireless network connection' (as appropriate).
    12. Click on the OK"" button. Closing this dialog box, click on the 'OK' button on the next dialog box.

    For more information, please see the link below.

    Windows Firewall with Advanced Security Properties Page

    Hope that the information provided is useful. Keep us updated on the State of the question, so that we can help you further.

  • Recently blocked the export key

    Hello

    I hope some can help me with one.

    I have been using Windows 7 Ultimate 64 bit for at keast 3 years with no problems until now.

    I recently went from 32 bit to 64 bit on the PC (which I did several times in the past with no problem), but now I am unable to activate Windows due to the following error:

    0xC004C003 activation - the server has determined that the specified product key has been blocked.

    I tried the same key on 32-bit and 64-bit with the same result.

    I bought two copies of Windows 7 Ultimate edition of the same online store. The other product key still works fine.

    I have alos tried to activate Windows by using the automated telephone system, which still doesn't work.

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0
    Code of Validation caching online: 0x0
    Windows product key: *-* - FFC7R - VBYR2-GCD64
    Windows product key hash: X2oI4rvOtvT0nqOQvBwi6HN6WpE =
    Windows product ID: 00426-067-6806834-86431
    Windows product ID type: 5
    Windows license type: retail
    The Windows OS version: 6.1.7601.2.00010100.1.0.001
    ID: {44B1EF21-382F-47AD-87D0-3B1C26A26CD1} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Ultimate
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.120830 - 0333
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Status of office: 101 non-active
    Microsoft Office Enterprise 2007 - 101 non-active
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Internet Explorer\iexplore.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {44B1EF21-382F-47AD-87D0-3B1C26A26CD1}1.9.0027.06.1.7601.2.00010100.1.0.001x 64*-*-*-*-GCD6400426-067-6806834-864315S-1-5-21-456954624-4090772177-3259766710MSIMS-7592American Megatrends Inc.. V1.14 20110518000000.000000 + 000BA1F3707018400FA08090409GMT Standard Time(GMT+00:00)03101101Microsoft Office Enterprise 200712zO7JQ7BSwOt3JRhMWfHklXnPl5I =81599-873-7392293-651571 3279E34F46366D2

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 Ultimate edition
    Description: operating system Windows - Windows (r) 7, retail channel
    Activation ID: a0cde89c-3304-4157-b61c-c8ad785d1fad
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00426-00172-067-680683-00-2057-7601.0000-0062013
    Installation ID: 008825188475594630701264282156604496847152090052861022
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    Machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: GCD64
    License status: initial grace period
    Time remaining: 39480 minute (s) on (27 day (s))
    Remaining Windows rearm count: 4
    Trust time: 01/06/2013-13:19:30

    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: 0x00000000
    Beyond: 0 x 0000000000000000
    Event timestamp: 1:6:2013 11:51
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:

    --> HWID data
    Current HWID of Hash: MgAAAAIABAABAAEAAAABAAAAAQABAAEA6GFgHTa2xEuqdkjk/FMQi4iqqhlCrbSGzDE =

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes, but no SLIC table
    Windows marker version: N/A
    OEMID and OEMTableID consistent: n/a
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC 7592MS A7592100
    FACP 7592MS A7592100
    HPET 7592MS OEMHPET
    MCFG 7592MS OEMMCFG
    LASRYVITRAGE 7592MS A7592100
    GSCI 7592MS GMCHSCI
    SSDT DpgPmm CpuPm

    I have attached the report of diognostics, then maybe someone can help here...

    Thank you

    OK great.

    I tried to find the seller, but it seems that it has shut up shop.

    I understand that it is possible to buy a new key of Prodcut windows 7 Microsoft due to the sale of windows 8...

    Can I get the upgrade of windows 8 with my current copy of windows than 7 Ultimater installed? or will this cuase because of the false Windows 7 key questions?

    Thank you very much

    Yes, you can still buy a Windows 8 upgrade and use the Windows 7 Ultimate as a license of qualification.

    http://www.Windows.com/buy

  • Blocks of lost and lost configuration/table on PS6000 - crisis

    Lost and lost blocks configuration on PS6000

    After the loss of power and reboot, the following symptoms:

    No active Ethernet link
    Connection by serial Console cable gives lost blocks
    Old password grpadmin is known, but not details of the current group, request the Member to initialize the array. All data would be lost.

    Crisis! Is it possible to recover the table and group information and all data, even if unreliable and incomplete?

    ATTENTION: Before using the clearlostdata command, call your support provider.

    Clears the blocks of data on a table was lost.

    Use the clearlostdata command when the blocks were lost, but the table doesn't know which blocks have been lost. In this case, the table will be unable to start or will not be accessible from the network.

    Once connected to the table (either through a serial connection or a network connection with the IP address of a network interface), press the key and sign in to an account of group that has permission to read / writing (for example, the grpadmin account). The console will describe the problem and recommend that you use the clearlostdata command to try to fix the problem of lost block. At the CLI prompt, enter the clearlostdata command.

    The clearlostdata command may or may not being able to fix the whole problem of lost blocks. In some cases, the problem can be corrected enough to initialize the array. If volumes stay offline, you maybe won't be able to recover the data on them. In these cases, you must delete the volumes, recreate them and recover data from a backup or a replica.

    If the table is a member of a group and the command clearlostdata does not resolve the problem, the table does not start and you may need to remove the members of the group. If you remove the Member, the table will be reset and returned to its default settings. Delete only a member offline in extreme circumstances because reset table will delete all data on the array. See page 153 members.

    Format

    clearlostdata

    Example of

    The following example shows how to log on to the account of grpadmin since a Terminal console and run the command clearlostdata on the table. PS Series storage ArraysUnauthorized access forbidden

    Login: grpadmin

    Password:

    Welcome to the Group Manager

    Data loss has occurred. The table is not initialize until the error condition has been cleared.

    > clearlostdata

    cleaning of LUN

    digitization of cooking complete RAID

    -joe

  • error 0x8007041D during activation of windows 8

    I get this error message when I try to activate windows. My product key is already entered.
    It worked fine until a week ago. So now whenever I turn on my pc it says please activate, I click Activate, and it displays error 0x8007041D.
    Any help would be appreciated!

    Hello Santosh,

    Thanks for posting your question on the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    You made any hardware or software changes on your computer before the show?

    Thank you for details on the issue.

    This problem may occur if the Windows activation files are corrupt or if the anti-virus software installed

    on your computer, blocks the activation process.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Activate Windows using the activation of the phone and check.
    Refer to this article:
    Get help from Microsoft Windows activation
    http://Support2.Microsoft.com/kb/950929

    If this does not help, use method 2.

    Method 2:
    Disable the anti-virus software, and then try to activate Windows.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • My ipad locking for some time now and don't can't unlock it, how do I unlock the lock of the activation?

    How can I unlock my ipad for the actviation lock?

    Bettylouisetrapp wrote:

    How can I unlock my ipad for the actviation lock?

    Enter the correct credentials that was used the first time, that the ipad has been implemented.

    If you bought it second hand contact the original owner.

    There is no way to bypass the blocking of activation.

  • Lock - contact the former owner - activation mission impossible?

    Hi Apple community!

    I bought an iphone 5 recently, which is locked (bought cheaply but) activation of the former owner. Of course, the person who sold me the unit doesn't have any info on the phone. BUT! I want to get in touch with the previous person to return the unit or get the activation lock removed.

    So I called the Apple Support and the representative understood the situation but he couldn't help me. He told me what network it is locked (carrier). After that I contacted the carrier and they said that they are not able to access users account.

    To be clear, I did not for all data, I asked Apple and the carrier to contact the owner to inform him I have his camera and if he wants it back because it's useless for me.

    Is there a way to get in touch?

    Because, if not, can someone explain to me what the purpose of blocking of Activation option? Should ' t that he be that owners get their goods?

    I know I'll get answers like "BACKSPACE" and "you should buy this in the first place", but please understand that I'm looking for help and a solution.

    Thank you very much!

    You could turn the iPhone to the police.  They may seek the rightful owner or have a current report of loss.

    In most jurisdictions, property unclaimed within a period of time can be returned to the person who makes it. It would be useless to you, but at least there is a chance, that it is up to the buyer.

  • activation help

    bought an iphone 5s on 18mnths ago and decided to update software, but I can't by activation

    screen the guy I bought cant rember her former icloud account you can pass thisin sort

    There is no way to bypass the blocking of activation. Only the owner of the account that is used to lock can remove the lock.

    If he can not remember the password, he can try to reset it to https://iforgot.apple.com

  • My iPad 2 could not activate after installing 9.03. Say... could not be activated because the activation server is temporarily unavailalble. I tried to 'activate' for four days... went to an Apple store bar 'Genius' and still no solution.

    I have an iPad 2 and before executing the last IOS 9.3 update, it was a camera works perfectly well. I don't have any iCloud upward. I have the valuable photos and info on my iPad that I don't want to lose!  Now I can't even use it!  He failed to activate after the execution of the update and is now in an infinite loop.
    The display shows the following:

    Could not active iPad. Your iPad could not be activated because the activation server is temporarily unavailable. Try to connect your iPad to iTunes to activate it, or try again in a couple if minutes. If the problem persists, contact Apple support. .... Try Again... and again...

    I was 'Try again' for four days and spent a day at the Apple Genius Bar store.  They could not find a "fix" and suggested I send my iPad in California and pay for data recovery, because the next step would be to wipe my iPad!  ***!

    I understand that you're angry about the issue of server activation, but sittuations as why it is so important to backup your data using iTunes or iCloud. You never know when you might have to restore from a backup.

    http://appletoolbox.com/2016/03/iOS-9-3-activation-error-update-fix/

  • How to bypass the blocking of iCloud?

    I bought an iPhone off eBay 6. I got the phone and the phone is locked iCloud so I need the original Apple ID and password of the account. I contacted the seller, but he won't answer so now I'm stuck with him because he didn't have a return policy. Is there a way to do a software reset so I can get around this?

    There is no way to bypass the blocking of Activation. If the unit announced that it wasn't locked Activation, and the owner does not respond, then open a case with eBay for a refund. Otherwise, you've got yourself an expensive paperweight.

  • How to lock the active tab

    Hi all

    I placed a control tab, on demand, in a tab of the Panel I run a heavy code that takes a few minutes to do. For code that runs in time, I want to block the active tab, so he can't switch to different tab. No matter what way to do in CVI? Thank you.

    Hi dragondriver,

    I don't think you can lock a tab, but you can programmatically dim all the other tabs on the same event that starts your heavy treatment, and then their undim one he finished.

    Hope this helps,

    Bogdan

  • request for activation but used accsept my product key?

    keep saying my code is in use

    • Click on the button 'Start' and in the box, type start the search in the following: slui.exe 4
    • Press the ENTER key.
    • Select your country.
    • Follow the instructions for activation by telephone.
    • When finished, restart your computer.

Maybe you are looking for