How to call a script with an officer designated in a loop of a procedure asynchronously and then wait for the children at the end.
I tried to call a script in a loop of a procedure of Jython, using startcmd.bat and sub-process; the command succeeds when I omit the "-AGENT_CODE = MySA_Agent1 ' parameter (highlighted and emboldened)
But omitting the '-AGENT_CODE = MySA_Agent1 "the scenario starts with the default value (no Agent) and subsequently fails to find the w: drive. Wen, I understand the '-AGENT_CODE = MySA_Agent1 ' the command fails with return code 2.
Also, it seems that the OdiWaitForChildSession will not work with this approach, because the sessions so are not recognized as child sessions at all.
Another simpler process is to have a step for each folder that I want to ask and just use OdiTools and StartScen; but it's a huge process because it could have potentially many interrogation records.
Please Guide:
from __future__ import with_statement
from com.ziclix.python.sql import zxJDBC
import of subprocesses
#GetSources.py
def getdata (c, stmt):
Try:
c.Execute (stmt)
except zxJDBC.Error, e:
raise Exception (e, stmt)
Another thing:
return c.fetchall)
driver, url, user, passwd = ("< % = odiRef.getInfo ("SRC_JAVA_DRIVER") % > ',")
'< % = odiRef.getInfo ("SRC_JAVA_URL") % >',
'< % = odiRef.getInfo ("SRC_USER_NAME") % >',
'< % = odiRef.getInfo ("SRC_PASS") % >'
)
Try:
subprocess.check_call ([' cmd',
'/c',
"dir" command
« t: »
])
except subprocess. CalledProcessError, e:
raise the Exception (e, ' Mapping The for the t: drive has not completed in the previous step. aborting... ")
Another thing:
folddic = {}
with zxJDBC.connect (url, user, passwd, pilot) as conn:
with conn.cursor () heart:
stmt = "SELECT SOURCE_SYSTEM, ABS (DIC - ROWNUM) FROM (SELECT SOURCE_SYSTEM, COUNT (1) DIC FROM DIR_USER.). (RÉPERTOIRES WHERE ACTIF = \ 'Y\' GROUP BY SOURCE_SYSTEM) ".
for the NTC in getdata (cur, stmt):
folddic [Str(CNT[1]) [:-2]] = cnt [0]
because me in folddic.iterkeys ():
Try:
subprocess.check_call ([' cmd',
'/c',
"startcmd.bat,"
"OdiStartScen,"
'- SCEN_NAME IS POLL_T_DRIVE_AND_SUBDIRS',
'-SCEN_VERSION = - 1',
'-SESSION_NAME = Polling_' + str (folddic.get (i)).
'-AGENT_CODE = MySA_Agent1',
'- SYNC_MODE = 2',
'-Interfaces.VarSubDirectory =' + str (folddic.get (i)).
'- Interfaces.VarPollInterval = 5'.
'- Interfaces.VarTimeout = 4'.
'- Interfaces.VarWait_N_Minutes = 30000 ".
])
except Exception, e:
raise the Exception (e)
Another thing:
Print "Called".
Hello
After much deliberation with the approach Prrocedure to do that are installed with the package, has been described in https://blogs.oracle.com/dataintegration/entry/using_variables_in_odi_creatin.
It takes away that the question of the child scenario waiting problem sessions will be managed ODI.
It was a good learning experience anyway.
Thank you for contributing A J Chantal Mangano
and JeromeFr for your taste.
Tags: Business Intelligence
Similar Questions
-
How to call a form with splashing around by clicking on a record with a time where
Hi all
How to call a form with splashing around by clicking on a record with a time where clause. I mean when I dip, click current record I want to call another form with the details of the
record with onetime where clause. Can someone help me in this regard.
Now, I'll call you a form with parameter with where Jadi but this should be avoided.
Thanks in advance
ArifMaybe this helps http://andreas.weiden.orcl.over-blog.de/article-28180655.html
-
I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content
Hello
Can the code below is useful for you, but I do not know how to sort.
Change the tag based on your employment application.
-
How can I open with an animated gif and then go to the home page?
I'm sorry for the newbie question, but I would like to have an intro of gif hosted on a web page. Is it possible to have the gif game and then go to the index file? Or I have to insert the gif into an index file and save the homepage like something different? If so, how to go to the home page automatically?
Any help is appreciated.Thanks for the help.
I agree... I don't necessarily like the animated intro, but he asked the person that I created the site for. I didn't use the flash because of the possibility that people do not have it or have it turned off and I thought this would be an easier option. Thanks again.
-
Hi all
If someone can help me with a powercli script to create a new account a local administrator on all ESX and ESXi hosts in the vcenter, create a role called admin and give all access except the root. This shoulb be past by a virtual centre.
Very much appreciated to help him.
Kind regards
MelLvin
I suspect that you posted your question to the wrong thread
This requires only a minor change to the script above actually.
Something like that
$groupName = "group"$accountName = "user"$accountPswd = "password"$accountDescription = "A user" $esxlist = Get-VMHostforeach($esx in $esxlist){ Connect-VIServer -Server $esx -User root -Password "password" Try { Get-VMHostAccount -Id $groupName -Group -ErrorAction Stop | Out-Null } Catch { New-VMHostAccount -Id $groupName -GroupAccount | Out-Null } $rootFolder = Get-Folder -Name ha-folder-root Try{ $account = Get-VMHostAccount -Id $accountName -ErrorAction Stop | Set-VMHostAccount -Password $accountPswd -Description $accountDescription -AssignGroups $groupName } Catch{ $account = New-VMHostAccount -Id $accountName -Password $accountPswd -Description $accountDescription -UserAccount -GrantShellAccess -AssignGroups $groupName } $rootFolder = Get-Folder -Name ha-folder-root New-VIPermission -Entity $rootFolder -Principal $account -Role admin Disconnect-VIServer -Confirm:$false}
-
I had purchase cc all apps for students / teacher and then I received the receipt e-mail.
But it is not activate the license and subscribe.
How can I activate it?
Check your account indicates the subscriptions that you expect (and that the adobe, used in the next step id is correct) by logging in here and checking the status of your subscription, https://www.adobe.com/account.html
then, if it's current, disconnect and then back to your client application using the adobe with the link above in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-
While trying to see installation and operation Planner, the test in local mode with only 1 VM the EXECUTION fails with message "Waiting for the number of virtual machines to register.
There may be a lot of problems in the desktop VM. Agent service see Planner is not running in VM Office. You can check in the event viewer to see what kind of error occurs. The most usual error missing file IP.txt c; drive or harness IP in the IP.txt produce if there is.
-
How can I make the biscuit and then break for both sides and have a few small pieces?
Hello
Please tell me...
How can I make the biscuit in AE and then break for both sides and has a few small chips fall?
any help would be so appreciated...
Strictly within EI, you have two options. Breaking with custom maps shatter and masking + particle effects. Wouldn't conviceing as Dave.
If you have access to a 3D application (blender is free) you can do it here.
This is a project of 2 minutes in AE with a stock image:
with one broken high buscuit animated to adjust to the split, it might be unconvincing.
Here's the project CS6 ASP file for you to play with. Take a look at all the elements to see how it worked by selecting all layers, then pressing the key u twice to see what I changed.
-
From today, many words I type, for example "of" "and" and "type" AutoCorrect for the word "nyoom". What nyoom? I'm not how to turn off auto correct, I know how to do this. I'm trying to understand what happened to my iPad, and I would like to address them.
iPad 2 Air
iOS version 9.3.1
I think someone pulled a prank on you.
https://www.Buzzfeed.com/expresident/nyoom-nyoom-nyoom?
Check the automatic correction feature!
-
How many people currently work at apple (by country, if possible), I write a business report and need to know the answer, thank you.
Watch their deposits of the company. This community is to post technical questions.
We are users like you. We are not Apple. If you wish to contact Apple use the link contact us at the bottom of this page.
-
How can I copy the folder my documents in my iCloud drive and then I sync the two after that?
How can I copy the folder my documents in my iCloud drive and then I sync the two after that?
You can simply drag in iCloud reader, but I pass and move documents in their files app instead. It will probably take a while to download all documents.
It is not a way to sync without some third party software that synchronizes folders, or learn how to use rsync in the Terminal.
Instead of synchronization, simply use the iCloud drive in the 'Documents' folder after you move the files.
-
I was online on you tube with my headphones and then I unplugged the and plugged them back and now I had no noise at all, what can I do? I checked the audio Manager and it seems fine.
Hello
(1) you use Internet Explorer or another browser to go online?
(2) this happens on all websites and pages?
(3) other sounds work fine on the computer?
(4) may I know the operating system you are using?
(5) were there any changes before the show?
I suggest you to follow the steps mentioned below and check if it helps.
Method 1: No sound in Windows.
http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows
Method 2:
Check the playback settings to see if the device is turned off / disconnected.
Method 3: If you are using Internet Explorer, check if this option is enabled.
a. Click Start, type "inetcpl.cpl" and press to enter.
b. click on the Advanced tab.
c. scroll down to see the multimedia section and make sure that "play sounds in Web pages" option is selected.
d. click ok to apply the changes and see if the problem still occurs.
Restart Internet Explorer and check if you can hear the noise.
You can also try to update flash player on your computer and check if the problem is resolved.
For more information, see the link:
http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems
I hope the information is useful!
-
I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!
I'm doing a movie with windows movie maker and cannot add a song for the end credits. Whenever I get the song imported the system stops... Help!
===============================
If a music file Movie Maker crashes
in a format that is not compatible. If you convert
the file to the format of .wma before importing, you
can have a better result.The converter below might be helpful to try:
(FWIW... it's always a good idea to create a system)
Restore point before installing software or updates)Format Factory
http://www.pcfreetime.com/
(FWIW... you can uncheck
all the boxes on the last screen)After downloading and installing Format Factory...
Open the program and choose an output folder...
(this is where you will find your files when they are
converted)Drag and drop your audio clips on the main screen...
Select "while"WMA"/ OK...
Click on... Beginning... in the toolbar...
That should do it...
Good luck.
John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *. -
As a plug-in? I have problems with an editable IRS form. It gives me "Access denied" and then opens the file as an editable file. I was able to open the form in the library.
I found a few other questions on this forum who have remained unanswered. I found a site citing the problem for drive X - I use XI.
Change to drive XI. Perhaps the reader at the library had this as its default setting.
- In Adobe Reader, clear the check box enable the Mode protected at startup :
- If you have a PDF open, right-click the document, and then click Page Display Preferences.
- If you open Adobe Reader from the shortcut, click on Edit > Preferences.
- In the categories dialog box Preferences pane, click (enhanced) protection, and then clear the box enable the Mode protected at startup .
- Close and reopen Reader.
I have no idea if that setting has been changed in my XI player since I used this version exactly one year ago.
- In Adobe Reader, clear the check box enable the Mode protected at startup :
-
I think I bought the wrong to adobe. I was hoping to edit PDFS and make arrangements for the signature and I get to do it with my current plan. Can I ask to sign up for the correct adobe? I don't know what the creative cloud is all about
Look at desktop applications Adobe Creative Cloud | Adobe Creative Cloud to see what is in the cloud and click on the names to find out what each
Acrobat is what you use to create and edit a PDF file
If that's all you want to do, you cancel your current subscription and then buy the correct subscription
This is an open forum, not Adobe support... below to connect with Adobe personnel to help
While the forums are open 24/7 you can't contact Adobe support at any time
Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
Don't forget to stay signed with your Adobe ID before accessing the link below
Creative cloud support (all creative cloud customer service problems)
Maybe you are looking for
-
FF 32.0 process still running after the closure of FF under Linux Mint.
The application databases Name: FirefoxVersion: 32.0User Agent: Mozilla/5.0 (X 11; Ubuntu; Linux x86_64; RV:32.0) Gecko/20100101 Firefox/32.0 Reports of incidents for the last 3 days All Crash reports Extensions Name: LastPassVersion: 3.1.1Enabled: t
-
I use OS 10.9.2 on a Macbook Pro with Thunderbird 24.4.0. Unfortunately, it opens with "Local folder" and I can't change that. My previous Thunderbird version 3.1.20 would always open to the last mailbox I was using. I transferred my old computer pro
-
I can't share the album on flickr or facebook
Hello: I have started to use pictures and still trying to find a way to do some very basic housekeeping! First, however, can't you share a photo album. The only option that appears when I chose to share, is iCloud, which I'm not interested in using f
-
FCPX updates are not displayed
I used to be able to update FCPX from my App store under 'updates '. I have 10.2.1. And 10.2.2 spent by me unnoticed. I tried to download the update from the store, but he said "WE COULDN'T COMPLETE YOUR PURCHASE. Final Cut is already installed on th
-
How to get the return parameter in sequence teststand ran by labview labview
Hello Executes a test sequence of labview (essentially running "\Examples\TestStand API\Executing sequences using API\LabVIEW\Execute with no Model.vi process") I need to get a parameter returned in 'Settings', after the sequence has run. My problem