Promt from user to proceed in case of error in sql script in sqlplus

I am using Oracle 10g on Linux platform. I am executing a control.sql script from sqlplus from where i cam calling three *.sql scripts:
control.sql
SPOOL test.log
SELECT 'Start of Control File at:'||systimestamp from dual;
@00_create_table_scripts.sql
@01_alter_table_scripts.sql
@02_insert_scripts.sql
SELECT 'End of Control File at:'||systimestamp from dual;
SPOOL OFFI want that whenver there is an error in any of the three sql scripts, a prompt should be displayed asking the user if he wants to continue or not(Y/N). If he presses Y, then the remaining script shall be executed, otherwise execution should be stopped there.
Can any body guide me how can i do this?
Thanks.

I want that whenver there is an error in any of the three sql scripts, a prompt should be displayed asking the user if he wants to continue or not(Y/N). If he presses Y, then the remaining script shall be executed, otherwise execution should be stopped there.If you have toad installed on your machine ,please run control.sql file from your machine .Toad will prompt an alert message saying that so and so error occurred and do you want to continue with that exception or not .
Thanks,
Prakash

Similar Messages

  • Error in SQL script  generated from OWB 10.1.0.4.0 Metadata Export Bridge

    Hi... maybe i´m abusing this forum .. but .. when you have questions .. you have to look for answers
    I use OWB 10.1.0.4 to buid some dimensions and one cube. I validate and generate this object and the result was successful.
    I made the deployment and everithing goes OK !!!.
    The problem appears when i want to generate metadata over this objects. I use the option Project > Metadata > Export > Gridge and use the option "Oracle 9i OLAP" like the product where i want to transfer the metadata .. and i got the SQL script without any errors. I suppose that i take the sql script i run it into SQL*plus ... so i do it.. and i got this errors:
    declare
    ERROR at line 1:
    ORA-06501: PL/SQL: program error
    ORA-06512: at line 119
    ORA-06510: PL/SQL: unhandled user-defined exception
    The same error for any dimension in script..
    Any help .. will be fully valued for me ..
    best regards
    Lisandro.

    But how did you identify that there are no runtime records in all_rt_audit_executions for your PL/SQL procedure?
    I guess you tried to search by procedure name... (but what column you used for searching)
    In my case all_rt_audit_executions and wb_rtv_audit_executions contains the same number of records, so they should be always in sync.
    Oleg

  • Collect data from User workflow error updating list item

    Hi, can someone please help me with WSS 3 workflows?!
    I'll keep it simple - I have a workflow step "Collect data from user" that will fail with Unknown Error when attempting to update list item (this is after the user has clicked Complete Task). The workflow does not continue past this step and I have
    to terminate the workflow.
    What is odd, is that if I do another Collect data from User in the same step but following the 1st collect, both will work!! How can this be?? This proves the 1st collect is OK so why won't it run without another Collect data after it?! Doesn't make sense to
    me.
    I was just trying the second Collect to troubleshoot the issue. I've tried other actions there but having another Collect does seem to be the action that kicks things into life. Is there a clue here?
    Any clues would be much appreciated as I'm not able to turn much up when I Google.
    Thanks

    Well, surprise, surprise, this has come back (thought it might!). The trace logs show it's a task locked error but I can't see how. Can anyone please provide me with some clues??
    03/14/2014 12:30:25.11     w3wp.exe (0x7698)                           0x5EA4    Windows SharePoint
    Services       Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect()
    - selectArguments: IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.39     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:28.47     w3wp.exe (0x7698)                           0x6C4C    Windows SharePoint Services 
         Web Controls                      88wy    Medium      SPDataSourceView.ExecuteSelect() - selectArguments:
    IsEmpty=True, MaximumRows=0, RetrieveTotalRowCount=False, SortExpression=, StartRowIndex=0, TotalRowCount=-1    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72er    Medium      Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot
    be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32&
    parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean
    suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)    
    03/14/2014 12:30:29.86     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        Error in commiting pending workflow batch items: Microsoft.SharePoint.SPException: This
    task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames,
    Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion,
    Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWinOEWSSService.CommitUpdateListItem(Transaction txn, Object[]
    transData)     at Micro...    
    03/14/2014 12:30:29.86*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           72fe    High        ...soft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)    
    at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 2dc6002d-9f9d-474f-84cf-329025347ec5    
    03/14/2014 12:30:30.05     w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    System.Workflow.Runtime.Hosting.PersistenceException: This task is currently locked by a running workflow
    and cannot be edited. ---> Microsoft.SharePoint.SPException: This task is currently locked by a running workflow and cannot be edited.     at Microsoft.SharePoint.SPListItem.PrepareItemForUpdate(Guid newGuidOnAdd, SPWeb web, Boolean
    bMigration, Boolean& bAdd, Boolean& bPublish, Object& objAttachmentNames, Object& objAttachmentContents, Int32& parentFolderId)     at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion,
    Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents)     at Microsoft.SharePoint.SPListItem.Update()     at Microsoft.SharePoint.Workflow.SPWi...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...nOEWSSService.CommitUpdateListItem(Transaction txn, Object[] transData)     at
    Microsoft.SharePoint.Workflow.SPPendingWork.PerformWorkNow(Transaction txn)     at Microsoft.SharePoint.Workflow.SPPendingWorkBatch.Commit(Transaction transaction, ICollection items)     at System.Workflow.Runtime.WorkBatch.PendingWorkCollection.Commit(Transaction
    transaction)     at System.Workflow.Runtime.WorkBatch.Commit(Transaction transaction)     at System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)    
    at System.Workflow.Runtime.Hosting.DefaultWorkflowCommitWorkBatchService.CommitWorkBatch(CommitWorkBatchCallback commitWorkBatchCallback)     at System.Workflow.Runtime.WorkflowExecutor.CommitTransaction(Activity activityContext) 
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...   at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean
    unlock, Boolean needsCompensation)     --- End of inner exception stack trace ---     at System.Workflow.Runtime.WorkflowExecutor.Persist(Activity dynamicActivity, Boolean unlock, Boolean needsCompensation)    
    at System.Workflow.Runtime.WorkflowExecutor.System.Workflow.ComponentModel.IWorkflowCoreRuntime.PersistInstanceState(Activity activity)     at System.Workflow.ComponentModel.Activity.MarkClosed()     at System.Workflow.ComponentModel.Activity.ReleaseLockOnStatusChange(IActivityEventListener`1
    eventListener)     at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.SafeReleaseLockOnStatusChange(ActivityExecutionContext context)     at System.Workflow.ComponentModel.FaultAndCancella...  
    03/14/2014 12:30:30.05*    w3wp.exe (0x7698)                           0x7A94    Windows SharePoint Services 
         Workflow Infrastructure           98d4    Unexpected    ...tionHandlingFilter.OnEvent(Object sender, ActivityExecutionStatusChangedEventArgs e)    
    at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()    
    03/14/2014 12:30:30.38     w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ERROR: request not found
    in the TrackedRequests. We might be creating and closing webs on different threads. ThreadId = 59, Free call stack =    at Microsoft.SharePoint.SPRequestManager.Release(SPRequest request)     at Microsoft.SharePoint.SPWeb.Invalidate()    
    at Microsoft.SharePoint.SPWeb.Close()     at Microsoft.SharePoint.SPSite.Close()     at Microsoft.SharePoint.SPSite.Dispose()     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow
    workflow, Collection`1 events, SPRunWorkflowOptions runOptions)     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflow(SPWorkflow workflow, Collection`1 events)     at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.RouteWorkflowEvent(SPItemEventProperties
    properties, SPWeb web, SPListItem item, Boolean fNeedTas...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...kReset)    
    at Microsoft.SharePoint.Workflow.SPWinOEItemEventReceiver.ItemUpdated(SPItemEventProperties properties)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiver(SPItemEventReceiver receiver, SPItemEventProperties properties, SPEventContext
    context, String receiverData)     at Microsoft.SharePoint.SPEventManager.RunItemEventReceiverHelper(Object receiver, Object properties, SPEventContext context, String receiverData)     at Microsoft.SharePoint.SPEventManager.<>c__DisplayClass8`1.<InvokeEventReceivers>b__0()    
    at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)     at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...userToken, CodeToRunElevated
    code)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](SPUserToken userToken, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.InvokeEventReceivers[ReceiverType](Byte[]
    userTokenBytes, RunEventReceiver runEventReceiver, Object receivers, Object properties, Boolean checkCancel)     at Microsoft.SharePoint.SPEventManager.HandleEventCallback[ReceiverType,PropertiesType](Object callbackData)    
    at Microsoft.SharePoint.Utilities.SPThreadPool.WaitCallbackWrapper(Object state)     at System.Threading.ExecutionContext.runTryCode(Object userData)     at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
    code, CleanupCo...    
    03/14/2014 12:30:30.38*    w3wp.exe (0x7698)                           0x6C9C    Windows SharePoint Services 
         General                           0    Unexpected    ...de backoutCode, Object
    userData)     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback
    tpWaitCallBack)     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)  , Allocation call stack (if present) null    

  • DBcheck get failed from db13 with error BR0301E SQL error -1031

    Hi,
    I am executing DBcheck from db13 but it gets failed with error "BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement".
    Here is the job logs:
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000424, user ID SVKM_BASIS2)
    Execute logical command BRCONNECT On host svkmeccdbci
    Parameters: -u / -jid CHECK20110930103211 -c -f check
    BR0801I BRCONNECT 7.00 (40)
    BR0477I Oracle pfile /oracle/SEP/102_64/dbs/initSEP.ora created from spfile /oracle/SEP/102_64/dbs/spfileSEP.ora
    BR0805I Start of BRCONNECT processing: cegwudvg.chk 2011-09-30 10.32.12
    BR0484I BRCONNECT log file: /oracle/SEP/sapcheck/cegwudvg.chk
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.12
    BR0813I Schema owners found in database SEP:
    DBSNMP, DIP, OPS$ORASEP, OPS$SAPSERVICESEP, OPS$SEPADM, ORACLE_OCM, OUTLN, SAPSR3*, SYS, SYSTEM,
    TSMSYS
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.20
    BR0814I Number of tables in schema of owner SAPSR3: 77207
    BR0836I Number of info cube tables found for owner SAPSR3: 49
    BR0814I Number of tables/partitions in schema of owner SYS: 625/189
    BR0814I Number of tables/partitions in schema of owner SYSTEM: 134/27
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.29
    BR0815I Number of indexes in schema of owner SAPSR3: 92099
    BR0815I Number of indexes/partitions in schema ofowner SYS: 678/199
    BR0815I Number of indexes/partitions in schema ofowner SYSTEM: 175/32
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0816I Number of segments in schema of owner DBSNMP: 25
    BR0816I Number of segments in schema of owner OPS$SEPADM: 1
    BR0816I Number of segments in schema of owner OUTLN: 9
    BR0816I Number of segments/LOBs in schema of owner SAPSR3: 174072/2383
    BR0816I Number of segments/LOBs in schema of owner SYS: 1838/87
    BR0816I Number of segments/LOBs in schema of owner SYSTEM: 353/22
    BR0816I Number of segments in schema of owner TSMSYS: 4
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0961I Number of conditions found in DBCHECKORA:118
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
    'PREPARE stmt_5 STATEMENT FROM'
    'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDE
    ORA-01031: insufficient privileges
    BR0806I End of BRCONNECT processing: cegwudvg.chk2011-09-30 10.32.52
    BR0280I BRCONNECT time stamp: 2011-09-30 10.32.52
    BR0804I BRCONNECT terminated with errors
    External program terminated with exit code 3
    BRCONNECT returned error status E
    Job finished
    Please help.
    Thanks in advanced.
    Ocean

    Dear,
    Thanks for the reply.
    I have checked the note you have mention, but it show it is for SAP Release 6.20 or lower.
    we have ECC6 EHP4 release 700.
    So, please advise, should i go for that note and perform the required action ?
    Thanks.

  • My app got rejected as PayPal has been used as payment method. in-app purchase method was suggested by apple. My app charges yearly subscription from users. In-App purchase does not support it.  How do I proceed. Please advise.

    I had submitted my app to apple for approval. My app got rejected as
    PayPal has been used as payment method. in-app purchase method was
    suggested by apple. My app charges yearly subscription from users. In-App
    purchase does not support this type of payment process ( or, I could not
    get to it).
    Please allow me to use paypal or guide me on how can I charge yearly
    subscription from users using in-app purchase payment method.

    You're not talking to anybody from Apple here.
    We're all just users like you.
    But I can tell you without reservation that PayPal cannot be used in an iOS app.

  • How to update attributes from OIM to AD in case of LDAPSync

    Hi All,
    In our scenario, we have LDAPSync configured for OIM AD Integration. OIM version is OIM 11gR2 PS1 (11.1.2.1.0.0)
    It is working fine and On user creation in OIM ,RealTime user creation under specified container in AD is happening.It is SSL enabled,so password is also getting updated from OIM to AD.
    But we have following conflicting scenario --
    -   As per our requirement we have to generate random password for User in OIM. For that we have PostProcess event handler implemented in OIM.
    - We have tested LDAPSync by creating user manually through OIM console. While creating user manually, we have provided value for password attribute along with other attributes.
        So, password attribute in AD will get updated for User along with all other attributes values mapped for AD from OIM.
    - But, in our scenario random password is generated for User through OIM post process event handler and it will be updated again in user profile of user created manually in OIM. This password is sent to User through mail.
      As this password event handler will get triggered after LDAPSnyc only, this password will not be update in AD for manually created user in OIM. So he can log into OIM with this new password but not to AD system.
      He will be able to login to AD system with same User ID but with password which was set at time of manual User Creation in OIM and not with the password updated in OIM user profile by PostProcess event handler.
    Is it possible to set password for user through PreProcess even handler implementation for Random Password generation. In this case also , the default OIM post process
    password generator will override the PreProcess event handler.How to resolve this issue.
    Also,when AD connector is in place in OIM environment we would be having change/update tasks for any attribute update to be send from OIM to AD.
    How this update scenario will be implemented from OIM to AD in case of LDAPSync ?
    Please provide any helpful pointer on this.
    Thanks,
    RPB

    Password :
    Increase order of calling for custom password event handler than OOTB handler.
    Update:
    you wanted to update custom fields?
    Did you check default update tasks comes with connector?

  • How can I transfer my iphoto library from a Mac OS Extended (Case-sensitive, Journaled) harddrive to a Mac OS Extended (Journaled) hard drive?

    Community,
    Every time I try to transfer my iphoto library from a Mac OS Extended (Case-sensitive, Journaled) harddrive to a Mac OS Extended (Journaled) hard drive, I receive the attached message: "You can't copy 'iPhoto Library' because it has the same name as another ideon on the destination volume, and that volume doesn't destinguish between upper- and lowercase letters in filenames."
    My theory is, if I am able to unpackage my iphoto library, I can transfer each folder one at a time so that I can trouble shoot any "duplicates." Will this work?
    Let's say that works. How can I repackage the library so iphoto recognizes it?
    Is there a better way?
    Thank you,
    Jonathan

    Can we assume that I don't have any naming conflicts? Clearly there are or else I wouldn't get the error I'm getting.
    The error doesn't mean you have name conflicts. It means that the Finder won't take the chance that you might have them.
    You're suggesting that all I would need to do would be to use Carbon Copy Cloner to transfer the files from the case-sensative harddrive to my Extended Journaled harddrive?
    Yes. But I would just use the built-in rsync shell command. First, back up all data if you haven't already done so. Launch the Terminal application by entering the first few letters of its name into a Spotlight search. Copy or drag -- do not type -- the line below into the Terminal window, then press the space bar:
    rsync -aE --delete
    Now drag the iPhoto library you want to copy into the window. You should have something like this:
    rsync -aE --delete /Users/you/Pictures/iPhoto\ Library
    Drag the Pictures folder on the destination volume into the window. Now you have this (line will wrap on the page):
    rsync -aE --delete /Users/you/Pictures/iPhoto\ Library /Volumes/something/Users/you/Pictures
    Press return. The copying operation will start. When it finishes, you'll see a new dollar-sign ("$") prompt below what you entered. If there were no errors, you're done.

  • Setting default value read from user session, for an LOV in Query component

    I want to set the default value of a field in VO that participates in a named view criteria and thereby in Query component. That field is configured with an LOV by mean of a view accessor. The values are Y and N and the corresponding display strings obtained from view accessor are true and false respectively.
    I am able to set the default value by setting the value of the criteria item corresponding to that field in view criteria. I am setting the value as either Y or N and I am able to corresponding display string as per the view accessor, on the query component when it is rendered.
    I want to read the defauilt value from the ADF BC user session and set it as default value. I tried setting the values as "adf.userSession.userData.usageFlag". Iam ensuring that the attribute usageFlag is set before the view activity that has the query component is invoked. But this is ending up showing no default value in the Query component when rendered.
    Can any one let me know how to go about with this?

    I made up your table since you didn't provide some example, but I'm sure this will give you the picture:
    SQL> var run_type varchar2(1)
    SQL> exec :run_type := 'A'
    PL/SQL procedure successfully completed.
    SQL> create table my_cycles as select level cycle_id
      2                            ,      level cycle_status
      3                            from   dual connect by level <= 5;
    Table created.
    SQL> select cycle_id
      2  from   my_cycles
      3  where  case
      4           when :run_type = 'D' and cycle_status  = 1 then 1
      5           when :run_type != 'D' and cycle_status  in ( 2, 3 ) then 1
      6         end = 1;
      CYCLE_ID
             2
             3
    2 rows selected.
    SQL> exec :run_type := 'D';
    PL/SQL procedure successfully completed.
    SQL> /
      CYCLE_ID
             1
    1 row selected.
    SQL>

  • Is there a way to Hide data from Users in Cubes?

    Hello All,
    Is there a way that I can easily hide data from users. For instance, in the XYZ cube we have data loaded through the year 2005. Is there a way for me to still keep the data in the cube; however, just hide 2005 so when users go in they do not see the year 2005. I know we can set filters and then apply "none" on select members. But the disadvantage with this is the data at the top level shows up as No access and it is only when the users drill down will they be able to see the data. So instead is it possible to hide data with everything else just normal?
    Thanks,
    Ted.

    Celvin Kattookaran wrote:
    With MetaRead Year will show up as "No Access"/Missing for users. http://docs.oracle.com/cd/E12825_01/epm.111/esb_techref/frameset.htm?maxl_meta_read.htm
    Thanks for the reply Celvin, So I understand from the link you posted that when using metaread the data of the ancestors is hidden. However in our case Years data is not getting hidden.:)
    I think this is because Under years we have CY, LY-1, LY-2, LY-3,LY-4,LY-5,LY-6,LY-7 as children. However Only CY Consolidates to Year. So I create a metaread to include CY, LY, LY-1,LY-2,LY-3,LY-4,LY-5,LY-6 members and not LY-7. As a result my Year still includes data as CY is included in the metaread filter.
    So this tells me(please please correct me if am wrong) it is not a must like indicated in the technical reference that data will be missing/No Access for ancestors of the metaread members. Data will be shown as No Access/Missing for an ancestor only if the members the ancestors consolidate from are not included in the metaread! Please let me know if this is right. I have verified it on my end but I would like to know what you think as Tech Reference sounds like "if metaread read filter is used, ancestor data will be hidden" which is not true.
    Thanks,
    Ted.

  • How to program shift register to read only when a new user is detected from user?

    Hi,
    I'm currently developing a program for position control in labview. The program is quite simple, whereby user will input the distance that he wants the table to be in the labview program, and labview will send signal to move a motor that will turn a ball screw to move a table horizontally to the targetted position. The criteria is that the profile of the motor depends on the distance it needs to move, whether a two-phase (acceleration and deceleration) or three-phase (acceleration, constant velocity, deceleration) to reach the target position.
    The problem occurs when the user wants to enter a new position (second input) for the table, as the input by user is position the table needs to be but the input required to determine which profile the motor follows depends on the distance that the table will move to get to the targetted position. Therefore, I would need a function to store the input by user temporarily, and recall it only when a new input from user is detected. By this, I would be able to use the difference of the input (input [n+1] - input[n]) and feed it to determine which profile the motor follows and the input by user can be kept as the position he wants the table to travel to (to compare with encoder).
    I thought of using shift registers to do this, but I am not able to make it to perform the deduction ([n+1] - [n]) only when it detects a new input. When i try using shift register, it travels to the targetted position, and one it reaches it will travel back to the original position. For example, when a user input 90, it means the table needs to move to point 90. As the shift register is initialized to 0, it will move to point 90 (90-0 = 90) but upon reaching 90, the shift register sends a signal of 90 (90-90 = 0) and the table returns to it's initial position.
    Is there any way that I can delay the reading of shift register only when a new input is detected or is there another way for me to achieve what i want?
    I've tried searching the discussion forum and ni website but couldn't find similar problems. Thanks for your help in advance.
    Solved!
    Go to Solution.

    Hi,
    I've managed to get what I needed by using a shift register + event structure as suggested by Adnan. However, I face another problem after implementing SR+event. I've attached two files, first the original program and second the updated program using SR + event. (it's only the jpg file as I've forgotten to save the labview program, will upload the program by tomorrow.
    In the original program, I have an elapsed time that is able to run continuously when I run the program. In the updated program, my elapsed time don't seem to run continuously when I run the program (as shown by elapsed time indicator). I need the elapsed time to run continuously as a input to calculate my motor profile.
    I suppose this is caused by the introduction of the event structure, will adding a case structure to wrap the event structure solve the problem or is there another way to get pass this. Appreciate if someone could drop me a pointer or two.
    Thanks
    Attachments:
    Mar 16 - continuous elapsed time.png ‏12 KB
    Mar 16 - elapsed time not continuous after introducing shift register + event structure.png ‏17 KB

  • How to calculate the total from users input in switch?

    I dont know how to hold the input from user. But here is part of my coding :
    System.out.println ("Type 1 for buying Ruler"+
    "\nType 2 for buying Pencil");
    stationaries = console.nextInt();
    switch (stationaries)
    case 1 : System.out.println("Ruler per unit : MYR1");
    System.out.println("How much does you want? : ")
    wantRuler = console.nextInt();
    sum = wantRuler * 1;
    break;
    case 2 : System.out.println("Pencil per unit : MYR2");
    System.out.println("How much does you want? : ")
    wantPencil = console.nextInt();
    sum = wantPencil * 2;
    break;
    How can I calculate the total for both of the stationaries if user wants 5 for ruler and 6 for pencil?

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.
    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.

  • Networking dual network logins and cant remove admin status from user

    Hi
    I hope someone can help.  From my the computer management\system tools\shared folders\open sessions\ on our server admin panel,  I have 3 users logged in as admin or administrator and they shouldn't
    be, they should be logged as their own user.  The user rights as dictated by the server is all correct but this is bugging me and the other users are all ok.
    On another point, how do I have some users replicated, in one case i have one user on  4 times, twice  as HB1-Andy and HB1-ANDY ?
    Hope someone can help as this has got me completely confused.
    I tried to do a screen shot but the forum wouldn't allow it until the account was verified.
    Many thanks

    Hi,
    Was your computer in the domain environment?
    Did you refer to Computer Management\System Tools\Shared Folders\Sessions of your local computer or your Server?
    From client, we just could see the following status:
    How did you know If they access the shared folder as admin?
    If I misunderstand you, please correct me.
    Karen Hu
    TechNet Community Support

  • IOCTL from user level program do not reach module

    Hello,
    I am facing with a weired problem. The user level ioctl on my device file does not reach the ioctl handler in my module at all. I have a simple character device driver called dummy (just pulled from a device driver manual 'hello world' example).
    [root@/]modinfo | grep dummy
    227 fa2f9a20 634 220 1 dummy (dummy driver)
    [root@/]ls -l /devices/pseudo/dummy\@0\:0
    c-wxrw--wx 1 root sys 220, 0 Dec 3 15:13 /devices/pseudo/dummy@0:0
    The open on the device file works well. But when I call ioctl, the message in the ioctl handler does not print. Niether does the ioctl call appear in the DTrace probes. perror from user program returns :
    : Invalid argument
    Let me know of any probable cause of ioctls not getting executed.
    Thanks in advance
    ->Shreyas
    My driver code is as follows :
        * Minimalist pseudo-device.
        * Writes a message whenever a routine is entered.
        * Build the driver:
        *         cc -D_KERNEL -c dummy.c
        *         ld -r -o dummy dummy.o
        * Copy the driver and the configuration file to /usr/kernel/drv:
        *         cp dummy.conf /usr/kernel/drv
        *         cp dummy /tmp
        *         ln -s /tmp/dummy /usr/kernel/drv/dummy
        * Add the driver:
        *         add_drv dummy
        * Test (1) read from driver (2) write to driver:
        *         cat /devices/pseudo/dummy@*
                  echo hello > ‘ls /devices/pseudo/dummy@*‘
        * Verify the tests in another window:
        *         tail -f /var/adm/messages
        * Remove the driver:
        *         rem_drv dummy
    #define SOLARIS
    #include <sys/devops.h> /* used by dev_ops */
    #include <sys/conf.h>               /* used by dev_ops and cb_ops */
    #include <sys/modctl.h> /* used by modlinkage, modldrv, _init, _info, */
                                           /* and _fini */
    #include <sys/types.h> /* used by open, close, read, write, prop_op, */
                                           /* and ddi_prop_op */
    #include <sys/file.h>               /* used by open, close */
    #include <sys/errno.h> /* used by open, close, read, write */
    #include    <sys/open.h>         /* used by open, close, read, write */
    #include    <sys/cred.h>         /* used by open, close, read */
    #include    <sys/uio.h>          /* used by read */
    #include    <sys/stat.h>         /* defines S_IFCHR used by ddi_create_minor_node */
    #include    <sys/cmn_err.h>      /* used by all entry points for this driver */
    #include    <sys/ddi.h>          /* used by all entry points for this driver */
                                     /* also used by cb_ops, ddi_get_instance, and */
                                     /* ddi_prop_op */
    #include <sys/sunddi.h> /*          used by all entry points for this driver */
                                     /* also used by cb_ops, ddi_create_minor_node, */
                                     /* ddi_get_instance, and ddi_prop_op */
    #include "vmci_defs.h"
    #include "vmciDatagram.h"
    char _depends_on[]="vmci";
    static int dummy_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
    static int dummy_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
    static int dummy_getinfo(dev_info_t *dip, ddi_info_cmd_t cmd, void *arg,
         void **resultp);
    static int dummy_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op,
         int flags, char *name, caddr_t valuep, int *lengthp);
    static int dummy_open(dev_t *devp, int flag, int otyp, cred_t *cred);
    static int dummy_close(dev_t dev, int flag, int otyp, cred_t *cred);
    static int dummy_read(dev_t dev, struct uio *uiop, cred_t *credp);
    static int dummy_write(dev_t dev, struct uio *uiop, cred_t *credp);
    static int dummy_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
                          cred_t *credp, int *rval);
    static int dummy_poll(dev_t dev, short events, int anyyet,
                          short *reventsp, struct pollhead **phpp);
    /* cb_ops structure */
    static struct cb_ops dummy_cb_ops = {
         dummy_open,
         dummy_close,
         nodev,                     /* no strategy - nodev returns ENXIO */
         nodev,                     /* no print */
         nodev,                     /* no dump */
         dummy_read,
         dummy_write,
         dummy_ioctl,
         nodev,                     /* no devmap */
         nodev,                     /* no mmap */
         nodev,                     /* no segmap */
         dummy_poll,                /* returns ENXIO for non-pollable devices */
         dummy_prop_op,
         NULL,                      /* streamtab struct; if not NULL, all above */
                                    /* fields are ignored */
         D_NEW | D_MP,              /* compatibility flags: see conf.h */
         CB_REV,                    /* cb_ops revision number */
         nodev,                     /* no aread */
         nodev                      /* no awrite */
    /* dev_ops structure */
    static struct dev_ops dummy_dev_ops = {
         DEVO_REV,
         0,                            /* reference count */
         ddi_no_info,
         //dummy_getinfo,
         nulldev,                      /* no identify - nulldev returns 0 */
         nulldev,                      /* no probe */
         dummy_attach,
         dummy_detach,
         nodev,                        /* no reset - nodev returns ENXIO */
         &dummy_cb_ops,
         (struct bus_ops *)NULL,
         NULL                         /* no power */
    /* modldrv structure */
    static struct modldrv md = {
         &mod_driverops,               /* Type of module. This is a driver. */
         "dummy driver",              /* Name of the module. */
         &dummy_dev_ops
    /* modlinkage structure */
    static struct modlinkage ml = {
         MODREV_1,
         &md,
         NULL
    /* dev_info structure */
    dev_info_t *dummy_dip; /* keep track of one instance */
    /* Loadable module configuration entry points */
    int
    _init(void)
         cmn_err(CE_NOTE, "Inside _init");
         return(mod_install(&ml));
    int
    _info(struct modinfo *modinfop)
         cmn_err(CE_NOTE, "Inside _info");
         return(mod_info(&ml, modinfop));
    int
    _fini(void)
         cmn_err(CE_NOTE, "Inside _fini");
         return(mod_remove(&ml));
    /* Device configuration entry points */
    static int
    dummy_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
         cmn_err(CE_NOTE, "Inside dummy_attach");
         switch(cmd) {
         case DDI_ATTACH:
               dummy_dip = dip;
               if (ddi_create_minor_node(dip, "0", S_IFCHR,
                   ddi_get_instance(dip), DDI_PSEUDO,0)
                   != DDI_SUCCESS) {
                   cmn_err(CE_NOTE,
                         "%s%d: attach: could not add character node.",
                         "dummy", 0);
                   return(DDI_FAILURE);
               } else
                   return DDI_SUCCESS;
         default:
               return DDI_FAILURE;
    static int
    dummy_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
         cmn_err(CE_NOTE, "Inside dummy_detach");
         switch(cmd) {
         case DDI_DETACH:
               dummy_dip = 0;
               ddi_remove_minor_node(dip, NULL);
               return DDI_SUCCESS;
         default:
               return DDI_FAILURE;
    static int
    dummy_getinfo(dev_info_t *dip, ddi_info_cmd_t cmd, void *arg,
         void **resultp)
         cmn_err(CE_NOTE, "Inside dummy_getinfo");
         switch(cmd) {
         case DDI_INFO_DEVT2DEVINFO:
                                     *resultp = dummy_dip;
                                     return DDI_SUCCESS;
                                 case DDI_INFO_DEVT2INSTANCE:
                                     *resultp = 0;
                                     return DDI_SUCCESS;
                                 default:
                                     return DDI_FAILURE;
    /* Main entry points */
    static int
    dummy_prop_op(dev_t dev, dev_info_t *dip, ddi_prop_op_t prop_op,
      int flags, char *name, caddr_t valuep, int *lengthp)
      cmn_err(CE_NOTE, "Inside dummy_prop_op");
    //  return DDI_SUCCESS;
      return(ddi_prop_op(dev,dip,prop_op,flags,name,valuep,lengthp));
    static int
    dummy_open(dev_t *devp, int flag, int otyp, cred_t *cred)
       int status;
       cmn_err(CE_NOTE, "Inside dummy_open");
        return DDI_SUCCESS;
    static int
    dummy_close(dev_t dev, int flag, int otyp, cred_t *cred)
        cmn_err(CE_NOTE, "Inside dummy_close");
        return DDI_SUCCESS;
    static int
    dummy_read(dev_t dev, struct uio *uiop, cred_t *credp)
         cmn_err(CE_NOTE, "Inside dummy_read");
         return DDI_SUCCESS;
    static int
    dummy_write(dev_t dev, struct uio *uiop, cred_t *credp)
         cmn_err(CE_NOTE, "Inside dummy_write");
         return DDI_SUCCESS;
    static int
    dummy_ioctl(dev_t dev, int cmd, intptr_t arg, int mode,
                          cred_t *credp, int *rval)
         cmn_err(CE_WARN, "%s(%d) Received function : %d\n", __FUNCTION__, __LINE__, cmd);
         return(0);
    static int
    dummy_poll(dev_t dev,                // IN: Device number.
               short events,             // IN: Requested events.
               int anyyet,               // IN: Whether other fds have had events.
               short *reventsp,          // OUT: Mask of satisfied events. 
               struct pollhead **phpp) { // OUT: Set to a pollhead if necessary.
         cmn_err(CE_WARN, "%s(%d) \n", __FUNCTION__, __LINE__);
       return 0;
    }

    Read very carefully the file /usr/include/sys/ioccom.h.
    -r

  • Sp_who2 -need only active sessions from users which are not the background sessions

    Hello,
    sp_who2 -need only active sessions from users which are not the background  sessions
    Please assist.
    Best regards,
    Vishal

    Its better to use DMV's to view only active sessions from users (spid>50) as mentioned by Shanky.
    You can do that using sp_who2 but it requires a bit of programming to list only user sessions.
    SELECT
    S.SESSION_ID,
    S.STATUS,
    S.HOST_NAME,
    C.CLIENT_NET_ADDRESS,
    CASE WHEN S.LOGIN_NAME = S.ORIGINAL_LOGIN_NAME THEN S.LOGIN_NAME ELSE S.LOGIN_NAME END LOGIN_NAME,
    S.PROGRAM_NAME,
    C.CONNECT_TIME,
    S.LOGIN_TIME,
    CASE S.TRANSACTION_ISOLATION_LEVEL
    WHEN 0 THEN 'UNSPECIFIED'
    WHEN 1 THEN 'READUNCOMITTED'
    WHEN 2 THEN 'READCOMMITTED'
    WHEN 3 THEN 'REPEATABLE'
    WHEN 4 THEN 'SERIALIZABLE'
    WHEN 5 THEN 'SNAPSHOT'
    ELSE CAST(S.TRANSACTION_ISOLATION_LEVEL AS VARCHAR(32))
    END AS TRANSACTION_ISOLATION_LEVEL_NAME,
    S.LAST_SUCCESSFUL_LOGON,
    S.LAST_UNSUCCESSFUL_LOGON,
    S.UNSUCCESSFUL_LOGONS,
    S.CPU_TIME AS CPU_TIME_MS,
    S.MEMORY_USAGE AS MEMORY_USAGE_PAGES,
    S.ROW_COUNT,
    S.PREV_ERROR,
    S.LAST_REQUEST_START_TIME,
    S.LAST_REQUEST_END_TIME,
    C.NET_TRANSPORT,
    C.PROTOCOL_TYPE,
    S.LANGUAGE,
    S.DATE_FORMAT,
    ST.TEXT AS QUERY_TEXT
    FROM
    SYS.DM_EXEC_SESSIONS S
    FULL OUTER JOIN SYS.DM_EXEC_CONNECTIONS C ON C.SESSION_ID = S.SESSION_ID
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT(C.MOST_RECENT_SQL_HANDLE) ST
    WHERE
    S.SESSION_ID IS NULL
    OR S.SESSION_ID > 50
    ORDER BY
    S.SESSION_ID
    -Prashanth

  • No value is select  from  user define  table

    Hi ALL,
                 i am using  B1if , i am sending  data  B1 to  isr , i am using user define table  but problem  no value is select  from  user define  table  .
    my table ID  is @SSRPOD 
    <payload operation="">
         <ns0:MT_POD_B1_System xmlns:ns0="http://xxxx.com/SC/B1/Dlvr/CustDlvr/ExtPrfOfDlvr">
              <POD>
                   <Header>
                        <SalesOrderNumber>
                             <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_SalOrdNo" />
                        </SalesOrderNumber>
                        <ArrivalDate>
                             <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_TaxDate" />
                        </ArrivalDate>
                        <Detail>
                             <DOLineQuantity>
                                  <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_Quantity" />
                             </DOLineQuantity>
                             <UOM>
                                  <xsl:value-of select="$msg/BOM/BO/@SSRPOD/row/U_Unitmsr" />
                             </UOM>
                        </Detail>
                   </Header>
              </POD>
         </ns0:MT_POD_B1_System>
    </payload>
    I have set following things. 
    Inbound Channel
        scenirio step identifier :z.xxxx
        Inbound Channel(IPO):INB_B1_EVNT_ASYN_EVT
        InboundType:Asynchronous
        Process Trigger:B1Event
        Identification Method: B1Event
        Identification Parameter:n.a
        Identifier:?????                                  
        Identifier Namespace:??????
      can anyone help me?
    Edited by: Sinha_Sinha on Feb 3, 2012 7:47 AM

    Found an authorization object was missing, that enabled the case types to show but hitting the GO button brought a page that can not be viewed in IE.  on to the next hurdle..........

Maybe you are looking for

  • You do not have sufficient access to your computer to connect to the selected printer

    Environment Print server: Windows 2008 R2 SP1 Clients: Windows XP SP3 + GPP Drivers: HP UPD PCL6 5.3.1.10527 Intermec 7.2.2 Ricoh UPD PS 3.9.0.0 Xerox UPD PS 5.216.12 Zebra 2.6.42.03 GPO Configuration - enables users to add printers/drivers from the

  • Load HTML into a Tabbed Panel?

    Can I load another URL Into a tabbed panel's main div? In other words, I click on a tab and then the Tabbed Panels' Content area loads up an HTML page into it's div. I know of similar frameworks that can do it but I haven't seen it done in Spry yet.

  • Error 7 occured at Invole Node in AB_Build.lvclass

    Having just Attachments: LabVIEW_Error.jpg ‏88 KB

  • Network data

    Hello there. I'm using unlock BB Q10 and unable to edit APN on "Settings->Network and Connections->Mobile Network->APN". You know, looks like the APN field is DISABLED. Someone help me please...this is only problem. Thank you so much bros

  • How can I type into a text window on top of a box?

    Hi gang. When I create a box (for example, a sidebar b/g) then create a text box on top of it, I can't type into that box unless I drag it off to the side, away from the b/g box (or layer, since we're not talking Quark) as the text just hops over to