Managing Partitions: exclusive access?

I have a partitioned table, each partition has 2 subpartitions except for CPART0 which has 1 subpartition.
For this example, assume each partition holds a days data and we have 5 partitions (we have many more depending on volume and number of days stored)
Partitions: CPART0 - CPART4
Subpartitions: keep and other
CPART0 < monday CPART0_keep This partition always holds old data we need to keep for awhile.
CPART1 < tuesday CPART1_keep CPART1_other
CPART2 < wednesday CPART2_keep CPART2_other
CPART3 < thursday CPART3_keep CPART3_other
CPART4 < friday CPART4_keep CPART4_other
When data comes in for friday, we want to drop tuesday but merge data in CPART1_keep subpartition
with CPART0_keep subpartition. We then add a new partition CPART1 with a high value < saturday
The keep subpartitions always get rolled into the cpart0keep partition.
What we do (using Pro C/C++) is:
alter table archive drop subpartition CPART1_other;
alter table archive merge partition CPART0 into CPART1;
alter table archive rename partition CPART1 to CPART0;
alter table archive rename subpartition CPART1_keep to CPART0_keep;
for 6 indexes:
alter index .. rename partition CPART1 to CPART0;
alter index .. rename subpartition CPART1_keep to CPART0_keep;
alter table archive modify subpartition CPART0_keep rebuild unusable local indexes.
alter table archive add partition CPART1 values less than ( saturday ) tablespace xxx;
In doing some volume testing we are seeing that the "rollover" of data will take 5 - 20 minutes.
My question is whether exclusive access is needed to do the alter table commands above.
We did get this error once when trying to prepare the rename partition statement:
ORA-00054: resource busy and acquire with NOWAIT specified (-4)
I had to manually fix and add the new partition.
Is exclusive access needed for 'alter table rename' ? What about drop, merge or add partition?
If it is the renames that need exclusive access, we can probably just not do any renames.
( the 1-subpartition old data can rotate thru CPARTx partitions )
Can we insert data in partitions not involved in the "rolling over" while the rollover to a new day is
in progress? What about queries?
thanks for any help or comments,
Lisa

OWA is not good enough because OWA doesn't notify you when there is a new email message.  If the partners only had OWA, they would miss lots of time sensitive emails and meeting reminders and we don't want to forward the messages and attachments to
their other email address.
OWA does notify you when a new email arrives. It even makes the message arrival sound.
CRM Advisor

Similar Messages

  • Can you set a single FILEGROUP to READONLY without getting exclusive access to the entire DB?

    I'm in the process of building a partitioned table with a sliding-window partition.  I have several years of historical static image data that will be moved to individual filegroups created to hold year's worth of data each.  The Business
    requires that the last 60 days of images be updateable, everything older needs to be readonly which simplifies the backup process.
    Since the PRIMARY filegroup is always READWRITE, I'm going to use the PRIMARY filegroup for the upper range of my partition to allow users to make necessary modifications to images in this 60 day window.  On a nightly basis, I'm going to run
    a process that changes the upper range on the partition to the daterange = (getdate() - 60).  The 61st day moves seamlessly from PRIMARY filegroup to my 2013FileGroup in milliseconds. 
    The process runs almost flawlessly, however, I'd like to change the FILEGROUP to READ-ONLY after moving the data to the archive partition.  In my process, I can quickly switch this archive filegroup to READWRITE and run the Partition MERGE \ SPLIT to
    change my upper range and move records between partitions.  However, I cannot change the FILEGROUP back to READ_ONLY without getting exclusive access to the entire database to save the change.
    Is there any way to set a single FILEGROUP to read-only quickly without setting the entire DB to SINGLE-USER with ROLLBACK IMMEDIATE?  I've tried the WITH ROLLBACK IMMEDIATE on the ALTER DB statement to modify the filegroup without any success. 
    I need WRITE access for a matter of seconds before setting it back to read only. Any help would be greatly appreciated.
    I'm dealing with a TB of data, a full restore could take 60+ hours to recover the entire db.  However, doing partial backups on the READWRITE portion of the DB is done quickly and I can get the business back online quickly by recovering the
    PRIMARY filegroup and then restore readonly filegroups in the background.  If I can't change these filegroups to read-only on the fly, I may have to maintain more backups for extended periods of time and may need to wait for maintenance windows to set
    filegroups to READONLY.

    Is there any way to set a single FILEGROUP to read-only quickly without setting the entire DB to SINGLE-USER with ROLLBACK IMMEDIATE?  I've tried the WITH ROLLBACK IMMEDIATE on the ALTER DB statement to modify the filegroup without any success. 
    I need WRITE access for a matter of seconds before setting it back to read only. Any help would be greatly appreciated.
    I am moving it to Tools. Consider setting up a separate database for the 60+ days data.
    Related thread:
    USE TempDB
    GO
    ALTER DATABASE SampleDb
    MODIFY FILEGROUP [Archive] READONLY
    GO
    The following error appears:
    Msg 5070, Level 16, State 2, Line 1
    Database state cannot be changed while other users are using the database 'SampleDB'http://www.sqlservercentral.com/Forums/Topic1328084-391-1.aspx
    Kalman Toth Database & OLAP Architect
    sqlusa.com
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Exclusive access could not be obtained because the database is in use

    Hi
    I am trying to use sql server 2005 management stodio to restore a database. But I got this error message:
    Exclusive access could not be obtained because the database is in use
    Anyone know how to solve this problem?
    Thanks
    Li

     Li556035 wrote:
    Hi
    I am trying to use sql server 2005 management stodio to restore a database. But I got this error message:
    Exclusive access could not be obtained because the database is in use
    Anyone know how to solve this problem?
    Thanks
    Li
    If you don not have any process running on your pc that uses your database like Enterprise Manager or any other third party application, use
    SqlConnection.ClearAllPools();
     in C# code before restoring. Like the following code:
    Code Snippet
    public void BackupAndRestore(string Query)
         SqlConnection.ClearAllPools();
    SqlConnection connection = new     SqlConnection(ConfigurationManager.AppSettings["ConnectToMasterDB"]);
         SqlDataAdapter da = new SqlDataAdapter();
         da.SelectCommand = new SqlCommand();
         da.SelectCommand.Connection = connection;
         da.SelectCommand.CommandText = Query;
         da.SelectCommand.ExecuteNonQuery();

  • Operations Manager Failed to Access the Windows Event Log and management server is showing warning state

    Hi,
    I am monitoring AD server from SCOM 2012 R2. My management server goes into waning state. When i run Health explorer then it come back in the healthy state but after some time it again goes into warning state. After seeing alert i found that a alert is coming
    again and again i.e.  Operations Manager Failed to Access the Windows Event Log.The description of alert is mention below
    The Windows Event Log Provider is still unable to open the DhcpAdminEvents event log on computer 'nc2vws12ad5.corp.nathcorp.com'.
    The Provider has been unable to open the DhcpAdminEvents event log for 64080 seconds.
    Most recent error details: The RPC server is unavailable.
    Please suggest me how to resolve this so that my management server will again come back in healthy state.
    Thanks
    Abhishek

    Hi Abhishek,
    As i mentioned earlier the Alert resolution says the same points.
    Can you give details on the below ?
    Is there really a log named "Dhcpadminevents" in the MS's Event viewer ?
    Did you recently configure any new alert where you mentioned "Dhcpadminevents"
    as a event log location ?
    If yes then what is the target you selected for the rule / monitor there ?
    Can you post the results for analysis ?
    Gautam.75801

  • Error - Exclusive access could not be obtained because the database is in use

    I am actually trying to make a script (in Sql Server 2008) to restore one database from one backup file. I made the following code and I am getting an error -
    Msg 3101, Level 16, State 1, Line 3
    Exclusive access could not be obtained because
    the database is in use.
    Msg 3013, Level 16, State 1, Line 3
    RESTORE DATABASE is terminating abnormally.
    How do I fix this problem ?
    IF DB_ID('AdventureWorksDW') IS NOT NULL
    BEGIN
    RESTORE DATABASE [AdventureWorksDW]
    FILE = N'AdventureWorksDW_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\Backup\AdventureWorksDW.bak'
    WITH FILE = 1,
    MOVE N'AdventureWorksDW_Data'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW.mdf',
    MOVE N'AdventureWorksDW_Log'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW_0.LDF',
    NOUNLOAD, STATS = 10
    END

    Check, if there are existing connections to the database you are restoring by following command
    select spid from sys.sysprocesses where dbid = db_id('AdventureWorksDW')
    if you see any existing connections then kill them by issuing KILL command Syntax for kill is
    KILL <SPID>
    once you see there are no more connections then 
    Use mastergoIF DB_ID('AdventureWorksDW') IS NOT NULL
    BEGIN
    RESTORE DATABASE [AdventureWorksDW]
    FILE = N'AdventureWorksDW_Data'
    FROM
    DISK = N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\Backup\AdventureWorksDW.bak'
    WITH FILE = 1,
    MOVE N'AdventureWorksDW_Data'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW.mdf',
    MOVE N'AdventureWorksDW_Log'
    TO N'C:\Program Files\Microsoft SQL Server\
    MSSQL10_50.SS2008\MSSQL\DATA\AdventureWorksDW_0.LDF',
    NOUNLOAD, STATS = 10
    END
    Mark as answer, if it works.

  • ESYU: R12 - Order Management를 위한 Multi Org Access Control(MOAC) setup 방법

    Purpose
    Oracle Order Management - Version: 12.0 to 12.0
    Information in this document applies to any platform.
    R12의 Order Management에 대핸 Multi Org Access Control(MOAC) setup 방법에 대해 알아본다.
    Solution
    일반적인 MOAC Setup:
    1. HRMS에서 Security Profile을 정의:
    a. HRMS Management responsibility 선택
    b. HRMS Manager> Security> Profile로 이동
    c. Security Profile이 정의되어 있는지 확인 (OM responsibility 혹은 Site level로)
    d. 만일 아직 setup 되어져 있지 않다면 Operating Units를 입력
    e. 저장
    Note: 만일 위 d step과 같이 새로운 security profile을 생성하였다면 concurrent program 'Security List Maintenance'를 꼭 실행해야 한다.
    그렇지 않으면 multiple operating units가 OM forms의 LOV에 나타나지 않을 것이다.
    이 program은 multi-org access를 validating 하기 위해 사용하는 table에 data를 생성한다.
    Navigation: HRMS Management> HRMS Manager> Processes & Reports> Submit Process & Report> Security List Maintenance
    2. MO Profile Options setup:
    a. MO: Security Profile - 이 profile setting은 MOAC functionality를 활성화 한다.
    b. MO: Default Operating Unit - 이 Operating Unit는 OM forms과 report에서 default가 될 것이며, 이를 clear 하거나 변경하기 위해 LOV를 사용할 수 있다.
    Keep the MO profiles in sync:
    MO: Security Profile은 site와 responsibility level로 setting 할 수 있다.
    MO: Default Operating Unit은 site, responsibility, user level로 setting 할 수 있다.
    Application이 원하는대로 동작되지 않는것을 발견하면 이 profile options의 setting 값을 확인한다.
    3. OM setup:
    R12 upgrade 시 OM Profile에서 migrate 된 새로운 OM System Parameters를 확인:
    Order Management Super User> Setup> System Parameters> Values
    (See <<NOTE 393646.1>>-R12 Readiness Cheat Sheet: Migrated OM Profile Options)
    4. Form에서 hidden field 'Operatin Unit'를 활성화시키고 default folder로 저장:
    Sales Order and Order Organizer forms
    Quick Sales order and Organizer forms
    Sales Agreement forms
    Pricing and Availability form
    Other forms
    Note: Sales Order form에서 hidden field 'Operating Unit'를 'Show' 하기 전에 fotm안에 이 field를 위한 공간을 만들어 놓아야 한다.
    예를 들면 Customer Number field를 짧게 하거나 Operating Unit field로 이 field를 덮어씌울수 있다.
    Reference
    Note 393634.1

    Hi Larry,
    Have you considered adding the exec apps.mo_global.set_policy_context call to your connection's start-up script?
    Tools -> Preferences -> Database -> Filename for connection startup scriptNot the most flexible approach, so I'm not sure if it is appropriate for your application, but just a thought. You might create distinct connection names with different start-up scripts for each org_id.
    Regards,
    Gary
    SQL Developer Team

  • Distribution Manager Failed To Access The Source Directory

    Hello All,
    I have this issue distributing content to my Distribution Points for months now. I keep running into this error below:
    Distribution Manager Failed to Access the source directory (\\share\folder\file.wim)
    Possible Cause: Distribution Manager does not have sufficient rights to the source directory.
    Solution: Verify that the site server computer account has at least Read access to the directory you specify as the source directory.
    Possible Cause: There is not enough disk space available on the site server.
    Solution: Verify that there is enough free disk space available on the site server.
    I checked the distmgr.log file and received these messages: 
    GetTempFileNameA failed; 0x80004005    SMS_DISTRIBUTION_MANAGER    3/24/2015 2:15:38 PM    13952 (0x3680)
    CFileLibrary::AddFile failed; 0x80004005    SMS_DISTRIBUTION_MANAGER    3/24/2015 2:15:38 PM    13952 (0x3680)
    CContentDefinition::AddFile failed; 0x80004005    SMS_DISTRIBUTION_MANAGER    3/24/2015 2:15:38 PM    13952 (0x3680)
    Failed to add the file. Please check if this file exists.    SMS_DISTRIBUTION_MANAGER    3/24/2015 2:15:38 PM    13952 (0x3680)
    SnapshotPackage() failed. Error = 0x80004005    SMS_DISTRIBUTION_MANAGER    3/24/2015 2:15:38 PM    13952 (0x3680)
    Failed to take snapshot of package CSU0006A    SMS_DISTRIBUTION_MANAGER    3/24/2015 2:15:38 PM    13952 (0x3680)
    There is enough space on the site server and the site server has full control over the source directory. I wish I can give you more information but I'm hoping this is enough info to get some assistance. If more information is needed please let me know!

    We usually give the DP's computer account and the site server computer account read access to these shares in our environment.
    ... which is not enough for drivers and updates (as there will also files be added).
    Torsten Meringer | http://www.mssccmfaq.de
    ... And for capture Image too if your capture destination points on that share

  • Using the Security Manager to restrict access to a single package

    After reading up on the Security Manager, the package.access property and the use of the [accessClassInPackage RuntimePermission|http://java.sun.com/javase/6/docs/technotes/guides/security/permissions.html#RuntimePermission] , it seemed to me that it would possible to set up the following: I have a security-sensitive code base packaged in a jar, and I want to make sure that only one client code base that I specify is permitted to access it. The idea here is to prevent malicious code from executing anything in the sensitive code base; the sensitive code is only accessible to one client that I name in a security policy file. Perhaps rather foolishly, I advised a client to consider this before testing out a sample myself, because much to my surprise, it appears to me that it isn't possible to get the Security Manager to do this at all. Am I missing something? I'm a bit startled by this conclusion -- it seems like such an obvious use for the Security Manager, I'm hard-pressed to be believe that it can't be done, and more inclined to suspect that I'm going about it wrong.
    Here's what I thought I could do: set up the package.access property so that it denies access to any package; then in the policy file, grant the RuntimePermission/accessClassInPackage to the client code base that is permitted to access the sensitive code.
    Of course, you wouldn't want the package.access property to exclude all packages in the global java.security file, because then no code could be accessed at all. It would be necessary to use the trick of resetting the package.access property within the code, as [illustrated in the secure coding guidelines|http://java.sun.com/security/seccodeguide.html#1-1a] .
    But the problem lies in the idea of "use the package.access property to deny access to +any+ package". There doesn't seem to be any way to use wildcards or the like with the property -- it has to specifically name packages (or package prefixes) to which access is forbidden. It wouldn't do to try to name the packages to which I'm trying to prevent access, since we're trying to prevent access from malicious code -- the attacker could just choose package names that aren't on the list. I'd really need to say that access is denied to all packages, except for those in the permitted code base, but the security mechanisms for package access don't seem to allow that.
    Moreover, the trick of changing the value of package.access can't be done within the client code -- otherwise, the attacker client would just set the property to his own purposes. But it can't really be done within the sensitive package either, because the whole idea is to prevent access to that package, and by the time it's busy setting the property, it's already too late, because the package has to have been accessed by a client to get there at all.
    It seems to me that this a symptom of something I've never really understood about the design of the Security Manager -- you can grant permissions to specific code bases, but you can't revoke permissions from specific code bases, let alone all code bases. What I want to do here is grant access permission to one specific code base and revoke it from all others. There doesn't seem to be any way to express that with the mechanisms of the Security Manager.
    The more I look at it, the more it seems that there's just no way to use the Security Manager this way -- set up package access so that a specific code base can only be accessed by one specific client code base. There are surely other ways to get the effect that I'm looking for, but as far as I can tell, none of them involve restricting package access (for example: define a custom permission, grant it only to the permitted client. and check against that permission within the sensitive code base; meaning that the sensitive code has to be accessible to anyone in the first place). This conclusion really surprises me (not to mention my bit of embarrassment with the client); wouldn't this be precisely the sort of thing the Security Manager ought to be good for?

    You're looking at this back to front. The security policy file is there for the client to decide how much access he is going to give this application, not for to application to restrict who can use it. If you want to control what used to be called 'state orientation' you can do that directly by looking down the stack trace inside your code.

  • Swap Error: Windows Azure is currently performing an operation on this deployment that requires exclusive access.

    When swapping our deployments for a web role, we are receiving an error, "Windows Azure is currently performing an operation on this deployment that requires exclusive access."  We have been waiting patiently for over 48 hours and the error
    persists.  We have deployed/swapped many times before without issue.  The dashboards do not show any known Azure issues at this time.  We are stuck with an out-dated deployment.
    We have deleted the staging deployment and tried again and it still does not work.  It appears to be an issue with the production deployment.
    Other threads state to create a support ticket.  So we have attempted to do so with the following scenario:  We are a BizSpark Plus partner and have MSDN tickets available to use for support.  It bites that we have to use 1 for this Azure
    issue.  However,  it appears you can't use MSDN support tickets for Azure as each time you go to create a ticket, it kicks you back to Azure to force the purchase of an Azure support plan...??

    If you have the MSDN support plan, please contact their local Global Customer Service center for assistance in creating a Azure support case.
    Customers can locate the nearest Customer Service center at following site
    http://support.microsoft.com/gp/customer-service-phone-numbers
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Regards,
    Jacky Wu
    Microsoft Online Community Support

  • Error: Windows Azure is currently performing an operation on this hosted service that requires exclusive access.

    Hello,
    We are creating 2 cloud services in parallel with one deployment(VM Role) in each cloud service. For both requests (Sometimes only on 1) we are getting the following 409 Conflict error as a response to create hosted service POST request:
    409 ConflictError :
    Windows Azure is currently performing an operation on this hosted service that requires exclusive access.
    On getting the exception we have a cleanup call and in retry we are trying to create again. On each retry we are using a new cloud service name.
    The error occurs few times, every time we invoke the creation of 2 cloud services with VM in parallel. And on 2-15 retries, its getting created successfully. However when we invoke 1 cloud service creation with VM, we are not seeing this error.
    Not sure why this error is thrown during simultaneous creations. Any help would be greatly
    appreciated.
    Thanks.

    Hi Sowmya,
    We are using the REST APIs for all our operations – Edit:
    Creating two cloud services with one virtual machine (IaaS) each having
    two different deployment IDs.
    Step by Step procedure for creating the services:
    1.   
    Create an Affinity Group
    2.   
    Create a Virtual Network
    3.   
    Create Hosted service
    4.   
    Create Deployment (VM Role) under that hosted service
    Step 3 & 4 are executed concurrently for two different VM Creation where it is failing with 409 Conflict error.
    Also, the two cloud services are being deployed under the same Virtual Network and same Affinity Group. Apart from this there are no shared resources
    between two cloud services.
    Please let us know if you have more queries.
    Thanks.

  • Exclusive Access To The Database

    Is there a way for my code to know if I have
    Exclusive Access To The Database?  If so, what would the
    Compress Database Command be?
    Application:  I would like my update script to include a command to compress the database, when no one else is in the database.

    Hi Mark,
    >> Is there a way for my code to know if I have Exclusive Access To The Database?
    I think you could check whether the Access is exclusive with vba code, some key code as below:
    Function IsCurDBExclusive () As Integer
    ' Purpose: Determine if the current database is open exclusively.
    ' Returns: 0 if database is not open exclusively.
    ' -1 if database is open exclusively.
    ' Err if any error condition is detected.
    Dim db As Database
    Dim hFile As Integer
    hFile = FreeFile
    Set db = dbengine.workspaces(0).databases(0)
    If Dir$(db.name) <> "" Then
    On Error Resume Next
    Open db.name For Binary Access Read Write Shared As hFile
    Select Case Err
    Case 0
    IsCurDBExclusive = False
    Case 70
    IsCurDBExclusive = True
    Case Else
    IsCurDBExclusive = Err
    End Select
    Close hFile
    On Error GoTo 0
    Else
    MsgBox "Couldn't find " & db.name & "."
    End If
    End Function
    For more information, you could turn to the link below:
    # ACC: How to Determine If a Database Is Open Exclusively
    http://support.microsoft.com/kb/117539
    >> If so, what would the Compress Database Command be?
    For compressing the database, I think you could use
    # Application.CompactRepair Method (Access)​
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • Build PAS Model - Cannot get exclusive access to model

    Hi all!
    I am receiving "Cannot get exclusive access to model" when we generate Build PAS Model from CubeBuilder.
    This is the environment info:
    OS: Red Hat Enterprise Linux Version 5.4
    Product: SSM 7.5 SP09 HotFix 03 (working in SAP Netweaver CE 7.1 SP5 for MaxDB)
    DB: MaxDB 7.6
    I create CBDEFAULT model connection, ODBC DSN SSM_CB_EA and SSM_CB_EA LINKDID, as per instructions in the install and config guides.
    All except the cube builder is working fine, even though after receiving the error y verified in my SSM Administrator that the Model Connections were
    correctly defined, my cube was named "CLARO" so the connection was automatically created as CBCLARO_MM and CBCLARO_SC, we tested connection and all was ok.
    I suspect about the ODBC for linux, for that instance, I install unixODBC and configure, but the problem persist. In my test, we verified that the user root
    and smpadm (smp is my instance name) the ODBC connection works fine, however, I configure the SYSTEM DSN however I was unable to verify it.
    These are my config files:
    ***Application Server files
    Application Server installed at /app/sap/sm/lss
    The lsdal.ini was copied from a Windows machine after configure the connection.
    /app/sap/sm/lss/lsdal.ini:
    [enable]
    ConnectionID1=Oracle (OCI)
    ConnectionID2=DB2 (CLI)
    ConnectionID3=SAP NW BI RFC (using sapnwrfc.ini)
    COnnectionID4=SAP NW BI RFC (load balancing)
    ConnectionID5=SAP NW BI RFC (specific server)
    [ConnectionID]
    ConnectionID1=ssm_cb_ea
    [Settings]
    LastSource=SSM_CB_EA
    [ssm_cb_ea]
    A0=ODBC
    A1=172.24.4.123
    B1=SERVERDB
    B2=0SERVERDB=smp
    B3=DSN
    B4=0DSN=SSM_CB_EA
    B5=UID
    B6=0Userid:=SAPSMPDB
    B7=PWD
    B8=3Password:=LNBY<W?D@420
    E1=MaxDB (Unicode)
    E2=MaxDB
    T1=ODBC
    V1=9.6.0
    *** unixODBC Config files
    odbcinst -j output
    unixODBC 2.3.0
    DRIVERS............: /usr/local/etc/odbcinst.ini
    SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini
    FILE DATA SOURCES..: /usr/local/etc/ODBCDataSources
    USER DATA SOURCES..: /root/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8
    System DSN files
    /usr/local/etc/odbc.ini
    [SSM_CB_EA]
    ServerDB=SMP
    ServerNode=172.24.4.123
    Driver=/sapdb/programs/lib/libsqlod.so
    [Default]
    Driver=/sapdb/programs/lib/libsqlod.so
    /usr/local/etc/odbcinst.ini
    unixODBC 2.3.0
    DRIVERS............: /usr/local/etc/odbcinst.ini
    SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini
    FILE DATA SOURCES..: /usr/local/etc/ODBCDataSources
    USER DATA SOURCES..: /root/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8
    User DSN File (root)
    /root/.odbc.ini
    [SSM_CB_EA]
    ServerDB=SMP
    ServerNode=172.24.4.123
    Driver=/sapdb/programs/lib/libsqlod.so
    [Default]
    Driver=/sapdb/programs/lib/libsqlod.so
    User DSN file (smpadm)
    /home/smpadm/.odbc.ini
    [SSM_CB_EA]
    ServerDB=SMP
    ServerNode=172.24.4.123
    Driver=/sapdb/programs/lib/libsqlod.so
    [Default]
    Driver=/sapdb/programs/lib/libsqlod.so
    *** Test Connection result from root
    root
    Connected!
    sql-statement
    help [tablename]
    quit
    SQL>
    *** Test connection result from smpadm
    smpadm
    Connected!
    sql-statement
    help [tablename]
    quit
    SQL>
    *** /app/sap/sm/lss/workfile/cb_build_CLARO.trc
    LSS>
    LSS> set control LINKID SSM_CB_EA
    LSS>
    LSS> .... capture cube id in a control var to simplify queries on other tables
    LSS> access lslink
    LSLink>

    Hi Cliff,
    This is the output of sup sho data and sup sho log before pressing "Build PAS Model" (My cube is the named "CLARO")...
    System> sup sho log
    ADMIN: Logged In , System Process Id 20856
             Database APLIB Open READ
             Database CLARO Open READ
             Database SMREPORT Open SHARED
    CBADMIN(1): Logged In , System Process Id 21020
             Database APLIB Open READ
             Database CGLIB Open SHARED
             Database INITIAL Open READ
             Database SMREPORT Open SHARED
    System> sup sho data
    MASTERDB (/app/sap/sm/lss/MASTERDB) Maxblocks 8000 Number Free 7898
    Database: APLIB (/app/sap/sm/lss/APLIB)
       Maxaccess: UPDATE   Disposition: ENABLED   Default Usage: Read
       Current State: IN USE (READ)  Protection Key: None
       Last user: CBADMIN    Last access: Mon Aug 29 22:51:39 2011
       Blksize: 512   Observations 5000   Maximum Members: 10000
       Max. Size of the Database is 32 Gigabytes.
       Maxblocks: 10000  Number Free: 4651
    Database: CGLIB
       Maxaccess: UPDATE   Disposition: ENABLED   Default Usage: Shared
       Current State: IN USE (SHARED)  Protection Key: None
       Last user: CBADMIN    Last access: Mon Aug 29 22:51:39 2011
       Blksize: 2048   Observations 5000   Maximum Members: 10000
       Database Not Available, Cannot Display Maxblocks and Number Free
    Database: CLARO (/app/sap/sm/lss/workfile/CLARO)
       Maxaccess: UPDATE   Disposition: ENABLED   Default Usage: Read
       Current State: IN USE (READ)  Protection Key: None
       Last user: CBADMIN    Last access: Mon Aug 29 22:51:41 2011
       Blksize: 16384   Observations 3000   Maximum Members: 20000   Maximum Variables: 5000
       Max. Size of the Database is 32 Gigabytes.
       Maxblocks: 120000  Number Free: 119986
    Database: INITIAL (/app/sap/sm/lss/INITIAL)
       Maxaccess: UPDATE   Disposition: ENABLED   Default Usage: Read
       Current State: IN USE (READ)  Protection Key: None
       Last user: CBADMIN    Last access: Mon Aug 29 22:51:41 2011
       Blksize: 4096   Observations 5000   Maximum Members: 10000
       Max. Size of the Database is 32 Gigabytes.
       Maxblocks: 10000  Number Free: 9965
    Database: JUICE (/app/sap/sm/lss/JUICE.ENG)
       Maxaccess: UPDATE   Disposition: ENABLED   Default Usage: Read
       Current State: AVAILABLE  Protection Key: None
       Last user: GUEST    Last access: Mon Aug 29 21:58:59 2011
       Blksize: 8192   Observations 1000   Maximum Members: 10000
       Max. Size of the Database is 32 Gigabytes.
       Maxblocks: 5000  Number Free: 4472
    Database: SMREPORT (/app/sap/sm/lss/SMREPORT)
       Maxaccess: UPDATE   Disposition: ENABLED   Default Usage: Shared
       Current State: IN USE (SHARED)  Protection Key: None
       Last user: CBADMIN    Last access: Mon Aug 29 22:51:39 2011
       Blksize: 2048   Observations 5000   Maximum Members: 10000
       Max. Size of the Database is 32 Gigabytes.
       Maxblocks: 10000  Number Free: 9962
    Database: TBDB (/app/sap/sm/lss/TBDB.ENG)
       Maxaccess: READ   Disposition: ENABLED   Default Usage: Exclusive
       Current State: IN USE (READ)  Protection Key: None
       Last user:     Last access:
       Blksize: 16384   Observations 0
       Max. Size of the Database is 512 Gigabytes.
       Maxblocks: 8000  Number Free: 7666
    As I can see there is not a lock or session opened with my cube, could you please confirm me.
    Thanks and Best Regards,
    Douglas

  • Exclusive access to a stored procedure

    Hi all,
    I've the following question:
    Is it possible to set an exclusive access for sessions to a procedure in the DB?
    So if session A enters the procedure and runs for example a loop or something like that and then session B comes and needs to enter the same procedure, it has to wait till session A finished and left the procedure.
    If it is possible, how?
    Thanks in advance.

    > If it is possible, how?
    It is called serialisation - forcing a resource (a procedure in your case) to service only a single caller at a time.
    The means used to protect a resource to (for example) force serialisation is called a semaphore. There are numerous technical definitions for a semaphore. But they all imply the same thing. Apple calls it "A programming technique for coordinating activities in which multiple processes compete for the same kernel resources."
    In Oracle, you can typically do this using DBMS_LOCK (as already stated). However, DBMS_LOCK is classified as a system procedure and by default, user/app schemas should not have access to it.
    There is a very easy alternative to DBMS_LOCK - using Oracle's own default row locking.
    This approach works in the following fashiion.
    You create a dummy table (it will never contain any committed rows and only serve as the "semaphore device").
    create table semaphore( id number primary key ) organization index;
    To force serialisation, the very first step in the procedure is to insert a row into this table using a unique id for that procedure. E.g.
    insert into semaphore values( UNIQUE_ID_FOR_MY_PROC );
    A second (or 3rd/4th/etc) copy of the procedure will be blocked on its INSERT. It will wait for the 1st INSERT to be either committed or rolled back.
    The procedure does its thing. Right at the end, it issues a:
    delete from semaphore where id = UNIQUE_ID_FOR_MY_PROC;
    This will still block the 2nd copy of the procedure. As soon as the 1st process now issue a COMMIT, the 2nd copy will continue and it will insert successfully into the SEMAPHORE table.
    What I like about this approach is that any failure in the procedure, will result in ROLLBACK (either implicitly or explicitly). The ROLLBACK will remove the INSERT on the SEMAPHORE table and the 2nd copy of the procedure will now be able to continue.
    Of course, it make sense not to do the INSERT and DELETE manually against the SEMAPHORE table, but instead use a PL/SQL package that does this for you. This way you have a nice wrapper API that can be extended to include more features.

  • Central Management Store being accessed is not the active store

    We are experiencing issues with our Lync 2013 services after hardening our SQL backend. Even though we have created aliases to the backend database instances and FrontEnd servers is able to access the databases, we are having this error when performing tasks
    like enable-csuser or new-clientpolicy from powershell or Lync control panel:
    ###50023:XdsPublishItems: The central management store being accessed is not the active store. No data can be read or any changes can be made to this store.
    Any suggestions or ideas?

    Here some guidance that must be followed for Lync Servers
    http://blogs.technet.com/b/nexthop/archive/2011/04/12/using-lync-server-2010-with-a-custom-sql-server-network-configuration.aspx
    http://technet.microsoft.com/en-us/library/gg195795(v=ocs.14).aspx
    Have this been followed ?
    Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph

  • A client made a DirSync LDAP request for a directory partition. Access was denied due to the following error

    We started getting this error when we installed Lync Server. I already verified that the "RTCHSUniversalServices" group has “Replicating Directory Changes" permission.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    A client made a DirSync LDAP request for a directory partition. Access was denied due to the following error.
    Directory partition:
    DC=<domain>,DC=com
    Error value:
    8453 Replication access was denied.
    User Action
    The client may not have access for this request. If the client requires it, they should be assigned the control access right "Replicating Directory Changes" on the directory partition in question.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Domain Controllers and Lync server are running on Windows 2008 SP2. Any other things that I could check?

    A client made a DirSync LDAP request for a directory partition. Access was denied due to the following error.
    Directory partition:
    DC=<domain>,DC=com
    Error value:
    8453 Replication access was denied.
    User Action
    The client may not have access for this request. If the client requires it, they should be assigned the control access right "Replicating Directory Changes" on the directory partition in question.
    oas4ever

Maybe you are looking for

  • 0 Results in Data Transfer.  Similiar issues anyone?

    Hello all, Please reply if my question isn't clear enough for anyone that may have expertise on this issue.  I'm a bit of a novice to BW, but I understand completely how the ETL process should work.  Here are the steps I've taken so far that have pro

  • Can anyone sort out ths problm

    Not generating accounting document Error Log             0900038457 000000 Document 900038457 saved (error in account determination)            Technical data                Tech. data details                 Client                 Group Number      

  • ITunes9 Home Sharing...I have lost a lot of music!! Help!

    Since enabling Home Sharing, I noticed a lot of duplicate songs in my library. I started deleting them, and now the original songs won't play. There is an exclamation mark next to the song title, and I get a message that asks me to locate the origina

  • Ger Run time of Process Chain

    Hi All, I have been monitoring process chains regularly in RSPCM. Can anyone help me with the table name or transaction code to find the total run time of individual process chain? Thanks in Advance, Shreyas Shah

  • Resetting PRAM no longer works using Leopard

    It seems that Leopard has changed the way to reset PRAM. Holding down the command-option-p-r keys no longer works on my iMac and PB. Anyone know the new way to reset PRAM in Leopard? Thx lenn