Does Azure Python API create_virtual_machine_deployment allow passing user data/script to a Linux VM?
Does Azure Python API create_virtual_machine_deployment allow passing user data/script to a Linux VM?
AWS EC2 python API allows me to pass user proprietary data or script when I try to create a EC2 linux based VM, e.g.
ec2_conn.run_instances(image_id, key_name=vpc_name, instance_type=vpc_size, subnet_id=subnet_id, security_group_ids=[sec_group.id], private_ip_address=from_private_ip, disable_api_termination=True, user_data=my_user_data)
For Azure python API create_virtual_machine_deployment, does it have the similar thing?
I noticed that there is --custom-data in the CLI, but is there such an option using Python API?
If yes, could someone provide an example code?
Thanks in advance...
Hi,
In Azure, this feature is called
custom data. Currently, you can inject custom data into an Azure VM by using the
Windows Azure command-line tools (--custom-data).
I assume that it is not supported in Python API. You can use “custom_data=xxx”
within “create_virtual_machine_deployment” to check if it works.
If it is not yet available, please submit your requirement in Azure feedback below:
http://feedback.azure.com/forums/34192--general-feedback
Best regards,
Susie
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Similar Messages
-
Does the power-on password fully protect user data?
Hi,
I am a T61 user.
First question
Does the power-on password fully protect user data, or could someone just boot from the optical drive or another source?
Second question
If I were to use full disc encryption, could I easily unecrypt it in the future?
Thanks in advance!As mostly with everything in life, there are pros and cons related to all sort of data protection schemes. At least in therory, everything that can be encripted may also be decripted in some way, be it via reverse engineering or some other technique. - But of course some sort of protection is always better than no protection at all, especially if you deal with lets say sensible data.
The power-on password is not a full data protection at all, to get an idea of the different password protection schemes take a look at the following short descriptions here...
--> http://www.tech-faq.com/ibm-thinkpad-bios-password.shtml
...there are some ways to reset a power-on password and informations how to do so can be found on the net. Further it doesn't help much if somebody takes out the whole harddrive of your Thinkpad.
Performing a full HDD encription, via an embedded ATM hardware chip inside the Thinkpad, or even using some OS related encription mechanism would be more secure for sensible data, as long as you don't get hardware or software trouble with those parts, which are responsible for the build-in encription/decription scheme. So it's always also a good idea to also perform additional periodically backups of your sensible data, so if some worst case scenario might appear, that you are still be able to restore your valuable data.
Hope this gives you at least a little idea about the pros and cons of both of these security schemes.
Message Edited by vkyr on 02-19-2008 01:48 AM
ThinkPad T60/X32/600/770 · IBM IntelliStation · 3x IBM SpaceSaver II -
This is the scenarios:
I have created a custom Linux VM image and I have successfully launch a VM using the Python API on region US-WESt.
My goal is to create a custom Linux VM on a VNET.
This is what I have done:
1. Knowing that using Python API to create Virtual Network (VNET) is not supported yet, I manually created a VNET using Console.
2. Using Python API to create hosted service (cloud service) on the same location as the VNET I created.
3. Using Python API to launch the VM on the VNET.
4. without any exception nor error, the VM is just not created...
The Python APIs I used:
#create a VM
name = 'myCloudN'
location = 'West US'
sms.create_hosted_service(service_name=name,
label=name,
location=location)
image_name = 'cloudN-Azure-20150205-os-2015-02-05'
media_link = 'https://xxxxxxxxxxxxxxxxxxxxxx.windows.net/vhds/cloudN-Azure-20150205-os-2015-02-05.vhd'
linux_config = LinuxConfigurationSet('cloudN-1', 'ubuntu', 'ubuntu1!', True)
os_hd = OSVirtualHardDisk(image_name, media_link)
vnet_name = 'test1'
sms.create_virtual_machine_deployment(
service_name=name,
deployment_name=name,
deployment_slot='production',
label=name,
role_name=name,
system_config=linux_config,
os_virtual_hard_disk=os_hd,
virtual_network_name=vnet_name,
role_size='Small')
<azure.servicemanagement.AsynchronousOperationResult object at 0x90669ec> <=====I got this
try:
props = sms.get_deployment_by_name(name, name)
print vars(props)
except Exception as pe:
print "Error on get_deployment: %s" %str(pe)
Error on get_deployment: Not found (Not Found) <======== Cannot find my VM
Did I miss anything or the Python API is not ready for this yet....
Please help.
Big thanks in advance...I did create the cloud service. In my original post, the first thing I do is to create the cloud service.
The API I used to create cloud service was "create_hosted_service".
#create a VM
name = 'myCloudN'
location = 'West US'
sms.create_hosted_service(service_name=name,
label=name,
location=location)
Please help. -
Does The Create Table Privilege allow to insert data ?
Hi,
I wish to know if it's possible that a user UserA allows another user UserB to create a table but does not allow him (does not allow UserB ) to insert data in a table UserB has created .If it's possible, I would want to know the commands to do that.
Thanks .sys@LINUX>create user user1 identified by user1;
User created.
sys@LINUX>grant connect, resource to user1;
Grant succeeded.
sys@LINUX>create user user2 identified by user2;
User created.
sys@LINUX>grant connect, resource to user2;
Grant succeeded.
sys@LINUX>conn user1/user1
Connected.
user1@LINUX>create table t (id number);
Table created.
user1@LINUX>disc
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
With the Partitioning, OLAP and Data Mining options
user1@LINUX>conn / as sysdba
Connected.
sys@LINUX>grant create any table to user2;
Grant succeeded.
sys@LINUX>conn user2/user2
Connected.
user2@LINUX>create table user1.tab (id number);
Table created.
user2@LINUX>insert into user1.tab values(1);
insert into user1.tab values(1)
ERROR at line 1:
ORA-01031: insufficient privileges
user2@LINUX>select * from user1.tab;
select * from user1.tab
ERROR at line 1:
ORA-01031: insufficient privileges
user2@LINUX>delete from user1.tab;
delete from user1.tab
ERROR at line 1:
ORA-01031: insufficient privileges
user2@LINUX>update user1.tab set id=1;
update user1.tab set id=1
ERROR at line 1:
ORA-01031: insufficient privilegesInteresting issue. Although user2 was able to create a table in user1 schema (because he has "create any table" privilege), he's NOT able to run ANY DML on that table (NO insert, update, delete and select)!
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
MDM ABAP API query to pass the date range
Hi
I want to retrieve certain data from MDM repository based on filter criteria by date stamp.
Not sure how to do it to pass the select option value in the query.
select-options: s_cdate for sy-datum obligatory .
DATA wa_query TYPE mdm_query.
DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
data: v_datestamplow1 type string.
data: v_datestamplow type TZNTSTMPL.
concatenate s_cdate-low '000000' into v_datestamplow1
v_datestamplow = v_datestamplow1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'EQ'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
I am able to get the data when I just pass the low value from selecct option. But I dont how to pass the date range.
v_search_date1-CONTENT = v_datestamplow.
ET REFERENCE OF v_search_date1 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
CALL METHOD cl_api->mo_core_service->query
EXPORTING
iv_object_type_code = 'Vendors'
it_query = gt_query
IMPORTING
et_result_set = gt_result.
II could see the below operator types . Although EQ says "Like standard select-options parameter" not sure how to pass the value.
EQ Equal to (like standard select-options parameter)
NE Not equal to (like standard select-options parameter)
LT Less than (like standard select-options parameter)
LE Less than or equal to (like standard s-o parameter)
GT Greater than (like standard select-options parameter)
GE Greater than or equal to (like standard s-o parameter
SW Starts with (MDM specific parameter)
Thanks,
Krishna.Hi,
To get the date range for select options, pass the low value with 'GE' operator and another query option with 'LE' operator for high value.
select-options: s_cdate for sy-datum obligatory .
DATA wa_query TYPE mdm_query.
DATA: v_search_date1 TYPE MDM_CDT_DATE_TIME.
data: v_datestamplow1 type string.
data: v_datestamplow type TZNTSTMPL.
concatenate s_cdate-low '000000' into v_datestamplow1
v_datestamplow = v_datestamplow1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'GE'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
GET REFERENCE OF v_search_date1 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
concatenate s_cdate-high '235959' into v_datestamphigh1
v_search_date2 = v_datestamphigh1.
clear wa_query.
wa_query-parameter_code = 'Changed_On '. "Field code ( Field name )
wa_query-operator = 'LE'.
wa_query-dimension_type = mdmif_search_dim_field. "Field search
wa_query-constraint_type = MDMIF_SEARCH_CONSTR_DATE. "Date serach
GET REFERENCE OF v_search_date2 INTO wa_query-value_low.
APPEND wa_query TO gt_query.
CALL METHOD cl_api->mo_core_service->query
EXPORTING
iv_object_type_code = 'Vendors'
it_query = gt_query
IMPORTING
et_result_set = gt_result.
Thanks. -
Does Firefox Mobile on Android allow the user to be able to view a Java streamed Webcam?
I tested the new Evo Shift at the Sprint store and brought up a webcam from the dog daycare center that would not appear on the phone. I was told that you couldn't do this on Android, I wanted to know if viewing the webcam is possible with Firefox Mobile?
Sorry, Firefox for Android is not be able to display pages that require the Java browser plug-in.
-
Azure Rest API PUT Block Blob Returns "The specified resource does not exist" CORS
I am trying to upload a file to Azure Blob storage. For some reason when I try to put a new block blob on in the storage it tells me the resource does not exist. I am sure it is something silly I am missing.
According to the documentation:
The Put Blob operation creates a new block blob or page blob, or updates the content of an existing block blob. Updating an existing block blob overwrites any existing metadata on the blob. Partial updates are not supported with Put Blob; the content of the
existing blob is overwritten with the content of the new blob. To perform a partial update of the content of a block blob, use the Put Block List (REST API) operation.
CORS is setup and that seems okay.
When I do a preflight and get this:
Request URL:https://<account>.blob.core.windows.net/test/image.png
Request Method:OPTIONS
Status Code:200 OK
Request Headers
OPTIONS /test/image.png HTTP/1.1
Host: <account>.blob.core.windows.net
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Access-Control-Request-Method: PUT
Origin: http://www.<site>.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Access-Control-Request-Headers: accept, content-type
Accept: */*
Referer: http://www.<site>.com/azure/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Response Headers
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 0d372e95-1524-460a-ab9c-7973d42a7070
Access-Control-Allow-Origin: http://www.<site>.com
Access-Control-Allow-Methods: PUT
Access-Control-Allow-Headers: accept, content-type
Access-Control-Max-Age: 36000
Access-Control-Allow-Credentials: true
Date: Thu, 27 Feb 2014 22:43:52 GMT
But when I make the PUT request these are the results.
Request URL:https://<account>.blob.core.windows.net/test/image.png
Request Method:PUT
Status Code:404 The specified resource does not exist.
Request Headers
PUT /test/image.png HTTP/1.1
Host: <account>.blob.core.windows.net
Connection: keep-alive
Content-Length: 22787
Cache-Control: no-cache
Pragma: no-cache
x-ms-blob-content-dis; filename = "image.png"
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Content-Type: image/png
x-ms-blob-type: BlockBlob
Accept: application/json, text/plain, */*
x-ms-version: 2013-08-15
Origin: http://www.<site>.com
x-ms-date: Thu, 27 Feb 2014 23:19:19 GMT
Referer: http://www.<site>.com/azure/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Response Headers
HTTP/1.1 404 The specified resource does not exist.
Content-Length: 223
Content-Type: application/xml
Server: Blob Service Version 1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: d5a60c8b-356a-44ff-93af-0ea720b5591f
x-ms-version: 2013-08-15
Access-Control-Expose-Headers: x-ms-request-id,Server
Access-Control-Allow-Origin: http://www.<site>.com
Access-Control-Allow-Credentials: true
Date: Thu, 27 Feb 2014 23:22:42 GMTYour request must be authenticated to be able to upload a blob. Please see our
Windows Azure Storage: Introducing CORS blog post for more information on using Shared Access Signatures with CORS. -
JMS Adapter (for DI) does not allow passing username and password to JMS connection
Post Author: PLed76
CA Forum: Data Integration
JMS Adapter (for DI) does not allow passing username and password to JMS connection. It has those fields only for MSMQ. Our Production environment does not allow us to connect to JMS (we use Tibco EMS) anonymously, so it prevents us from use of Data Integrator. Is there any way to pass those params, or obtain the correct version of JMS Adapter, or obtain source codes of the JMS Adapter so we can correct them ourselves (we can send you the corrected sources back) ? Thanks in advance for any help. (PL)ed76 Renaissance CapitalBump - Were having the same issue.
Has anyone found a way to connect to Tibco with a user/pwd?
Version 14.0.297. -
I am trying to allow guests on windows to connect to shares on my Lion server but it keeps asking for a password for guest. I have allow guest users to access this share enabled but it still does not work.
Ditto. Guest accounts shouldn't have a password. No way to enter one in System Prefs...
-
Does Captivate allow a user to track your progress?
Does captivate have the ability to track a users progress? I am trying to create an e-Learning project and I would like to allow the user to stop and exit the course and return a later date at the part of the course they had left. Is this possible. Thanks in advance.
GregThanks for that, that was really helpful. Do you know of any downloadable examples using LMS to bookmark the users progess.
Also I saw this example on the internet, although this is done slightly differently I believe, by using a swf widget.
http://www.cpguru.com//demonstrations/captivateBookmarkDemonstration/captivateBookmarkDemo nstration.htmhttp://www.cpguru.com/2009/02/25/captivate-shared-object-bookmark/
Although this method requires me to purchase a product to create it. Is using LMS better or is this "Shared object bookmark" better?
Greg -
Does OAM IdentityXML API supports deleting users in LDAP?
We have evaluated OAM IdentityXML WebServices for creating and managing user and group records in LDAP. One of our requirement is to be able to delete any user record and reuse the username for creating another user record.
Hence, we are looking for an IdentityXML function for deleting a user record from the identity store. We have seen the "canIDeleteUser" webservice, and hence assume that there should be an API to delete the user as well.
Also, we can not use the "workflowDeactivateUserSave" as our testcase is to delete and reuse the username.Yes. You can do this. Proceed on the path with the workflowDeactivateUserSave approach - just build the workflow to perform a 'delete' rather than a 'disable' step (usually the second step to achieve what you describe).
Do you have the workflow working that performs the delete?
As with all IDXML - get things working in the UI style0 first - then move to your IDXML development.
Hope that helps,
Mark -
How can I allow the user to retake a quiz from the middle of it in Captivate 7?
Hello Captivaters,
I would like to force the learner to pass a quiz before he can continue on with the training. If he doesn't pass the quiz, he will need to go back and take it again. The "retake" button allows him to do this, but I will actually like to have 4-5 of these "quiz checkpoints" in the eLearning -- each separated with presentation material -- so that the user proves he understands the material before advancing.
Therefore I would like to create my own "retake" button at the end of every "quiz checkpoint" that takes the learner back to the first question of that checkpoint (not to the first question in the training). So far, I have been able to create a button that appears after he gets a certain amount correct to allow him to continue, and I want to create a button that appears that takes him back to the first question in the checkpoint if does not get the required amount correct and retake those questions. The first part is easy, but I also need to add the function or reassign some variable to allow the user to retake the quiz. I hope I am making sense.. Any help would be much appreciated!
- RyanIt's great! Thanks again.
Here is the issue now. I guess it's not a huge problem, it's just if I can't find a better way, what I need to do will take a lot of time.
Like I mentioned before, I created this "results" slide that on enter either shows a "congrats" button or a "retry" button, depending on whether or not the user passed the quiz. I have copied this slide and pasted it behind all of the other sub-quizzes in the training, but when I do that, of course the link between the buttons and the conditional advanced action break.
As you know, when you duplicate a slide, all of the names of the objects on that slide are "refreshed" and are replaced with new generic names because you are in fact creating new objects as well. This means that I need to rename all of the objects on that slide (even though its a duplicate) and then replace all of the "old names" in the advanced action with these new object names.. Is there a faster way to do that?
Thanks again!!
Ryan -
API for creating new User in Oracle E-Business Suite through BPEL
Hello,
I would like to use a BPEL process to create a new User in Oracle E-Business Suite. In the Integration Repository I was able to find an API called FND_USER_PKG/LOAD_ROW that creates/updates Application's User data. Is this the API I should be using? If so, I would like to better understand how to use this API.
I have created a simple BPEL process and added an Oracle Application Service, which uses this FND_USER_PKG/LOAD_ROW API. I set the following parameter before Invoking the Oracle Application Service: X_USER_NAME, X_ENCRYPTED_USER_PASSWORD and X_START_DATE. When I run the BPEL process I get the following error. I suspect that I am not passing all the required input parameters. Does anyone have any sample data I can use to get this API to load correctly? If I am using the wrong API, please let me know.
Please note, I have also posted this question to the SOA Suite and BPEL discussion forums...
Thank you kindly!
Christine
- <input>
- <Invoke_OracleEBS_SecurityUser_InputVariable>
- <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
- <InputParameters xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LOAD_ROW/" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LOAD_ROW/">
<db:X_USER_NAME>
CRILEY
</db:X_USER_NAME>
<db:X_ENCRYPTED_USER_PASSWORD>
CRILEY
</db:X_ENCRYPTED_USER_PASSWORD>
<db:X_START_DATE>
2009-01-01
</db:X_START_DATE>
</InputParameters>
</part>
</Invoke_OracleEBS_SecurityUser_InputVariable>
</input>
- <fault>
- <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
- <part name="code">
<code>
20001
</code>
</part>
- <part name="summary">
<summary>
file:/E:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_OracleEBS_OnBoarding_1.0_d71e16636aa9ff51b9975926da6faeb2.tmp/OracleEBS_SecurityUser.wsdl OracleEBS_SecurityUser_ptt::OracleEBS_SecurityUser(InputParameters) - WSIF JCA Execute of operation 'OracleEBS_SecurityUser' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the APPS.FND_USER_PKG.LOAD_ROW API. Cause: java.sql.SQLException: ORA-20001: APP-FND-02600: Unable to create user CRILEY due to the following reason(s):
Unabled to call fnd_ldap_wrapper.create_user due to the following reason:
ORA-20001: Unabled to call fnd_ldap_wrapper.create_user due to the following reason:
An unexpected error occurred. Please contact your System Administrator...
ORA-06512: at "APPS.APP_EXCEPTION", line 72
ORA-06512: at "APPS.FND_USER_PKG", line 783
ORA-06512: at "APPS.FND_USER_PKG", line 916
ORA-06512: at "APPS.FND_USER_PKG", line 1035
ORA-06512: at "APPS.FND_USER_PKG", line 645
ORA-06512: at line 1Hello and thank you for your response. I am new to using APIs so please excuse my inexperience... I am not sure how to run the API outside of BPEL... Is that something you could easily walk me through?
I have made the following changes in BPEL based on your recommendation: 1) Added Oracle Application Service and used the API, LDAP_WRAPPER_CREATE_USER, found in the Oracle Application Module Browser* under: Applications Technology (ATG_PF)> User Management (UMX)> User (FND_USER)> PLSQL> User (FND_USER_PKG)> LDAP_WRAPPER_CREATE_USER
2) Set the following parameter prior to Invoking the Oracle App Service: X_USER_NAME, X_UNENCRYPTED_PASSWORD,X_START_DATE, X_END_DATE, X_DESCRIPTION, X_EMAIL_ADDRESS, X_FAX, X_EXPIRE_PWD.
3) Deploy and run BPEL through BPEL Control.
I get the following {color:#ff0000}error on the Invoke{color}. {color:#339966}Do you see any issues with the values I am passing in the input{color}? Any idea why I am getting this error? Is there anything that I need to have configured for the API to work correctly, other than adding an Oracle Application Service in the BPEL?
Thank you for your time,
Christine
bq. Faulted while invoking operation "OracleEBS_LDAP_Create_User" on provider "OracleEBS_LDAP_Create_User". \\ - <messages> \\ - <input> \\ - <Invoke_OracleEBS_LDAP_Create_User_InputVariable> \\ - <part xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" name="InputParameters"> \\ - <{color:#339966}InputParameters{color} xmlns:db="[http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LDAP_WRAPPER_CREATE_USER/]" xmlns="[http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LDAP_WRAPPER_CREATE_USER/]"> \\ <db:X_USER_NAME> \\ CRILEY \\ </db:X_USER_NAME> \\ <db:X_UNENCRYPTED_PASSWORD> \\ CRILEY \\ </db:X_UNENCRYPTED_PASSWORD> \\ <db:X_START_DATE> \\ 2009-01-01 \\ </db:X_START_DATE> \\ <db:X_END_DATE> \\ 2010-01-01 \\ </db:X_END_DATE> \\ <db:X_DESCRIPTION> \\ CRILEY \\ </db:X_DESCRIPTION> \\ <db:X_EMAIL_ADDRESS> \\[[email protected]|mailto:[email protected]] \\ </db:X_EMAIL_ADDRESS> \\ <db:X_FAX> \\ 999-888-7777 \\ </db:X_FAX> \\ <db:X_EXPIRE_PWD> \\ 0 \\ </db:X_EXPIRE_PWD> \\ </InputParameters> \\ </part> \\ </Invoke_OracleEBS_LDAP_Create_User_InputVariable> \\ </input> \\ - <fault> \\ - <bindingFault xmlns="[http://schemas.oracle.com/bpel/extension]"> \\ - <part name="code"> \\ <code> \\ 20001 \\ </code> \\ </part> \\ - <part name="summary"> \\ <summary> \\ file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_OracleEBS_OnBoarding_1.0_d71e16636aa9ff51b9975926da6faeb2.tmp/OracleEBS_LDAP_Create_User.wsdl [OracleEBS_LDAP_Create_User_ptt::OracleEBS_LDAP_Create_User(InputParameters) |http://forums.oracle.com/forums/]- WSIF JCA Execute of operation 'OracleEBS_LDAP_Create_User' failed due to: Error while trying to prepare and execute an API. \\ An error occurred while preparing and executing the APPS.FND_USER_PKG.LDAP_WRAPPER_CREATE_USER API. Cause: java.sql.SQLException: ORA-20001: Unabled to call fnd_ldap_wrapper.create_user due to the following reason: \\ ORA-20001: {color:#ff0000}Unabled to call fnd_ldap_wrapper.create_user due to the following reason: \\ An unexpected error occurred. Please contact your System Administrator.. \\ {color}ORA-06512: at "APPS.APP_EXCEPTION", line 72 \\ ORA-06512: at "APPS.FND_USER_PKG", line 3877 \\ ORA-06512: at line 1 \\\\ ;
Edited by: Christine Riley on Jan 28, 2009 1:22 PM
Edited by: Christine Riley on Jan 28, 2009 1:26 PM -
How to determine host status in a task via python api
Hello all,
using the python api I am having some issues trying to determine the status of a host within a task. For example I have a job, with one task and 10 hosts associated with that task. Eight hosts finish the task, 2 fail. However via the api I can only seem to determine the status of the job and the task. What I want is to be able to generate a report that basically matches what you see via the gui (ie 8 hosts ok, 2 hosts failed). The data structure OnStageTaskData gives me a status and a list of hosts, but not a status for each host. (Note I am not using any of the depricated functions/data structures). Currently my code looks like (minus the api init, etc)...
# list all the jobs for last week
joblist = api.GetJobs()
for job in joblist:
# if the job occured in the last week
if job.c_time > reportstarttime:
print "\nJob name %s Time %s " %(job.name, time.ctime(job.c_time))
try:
jobdetails = api.GetOnStageJob(job.id)
except COsApiJobNotFoundException:
print "Can't find job %s details" %job.name
continue
for tasks in jobdetails.job_data.tasks:
for hostid in tasks.task_data.target:
try:
hostinfo = api.GetHostGroup(hostid)
except OsApiHostNotFoundException:
print "Can't find host details %s" %tasks.task_data.name
print "Hostname %s Status %s" %(hostinfo.name, tasks.status)
which generates output like...
Job name chg233146-sol9 Time Sun Jan 13 10:31:42 2008
Hostname tacnomsrv02 Status Failed
Hostname tacpthsrv01 Status Failed
anyone have another way to doing this or suggestions? Or is this kind of info not available via the api? Thank you.Hi ConnectSolutions,
As you correctly pointed out, there is some bug in our code
that keeps the room active and you dont receive any events or
notification if you are entering as guest and waiting and the host
arrives. Also, since you havent entered yet i.e your role is still
5 i.e. UserRoles.LOBBY , you can't access any of the UserManager's
collections and will get a length of 0 always. We will be fixing
this with priority .
But you can get around the problem as of now, by having a
small shared model of yours ( any collectionNode or sharedModel
will do) where you create a node and publish a message on it from
the Owner's side whenever the owner/host enters to notify everyone
that he has entered. Just remember to set the accessmodel of
NodeConfiguration of node on which you are publishing to LOBBY ie.
role = 5 , and make the publishModel = 100 so that only owners can
publish on this node. In this way , any users waiting will be
receiving this message and will know the host has arrived. If you
can't get this sharedModel concept to work, let me know. I will try
to run on my side.
And as of our side regarding actual fix, we will fix this use
case and put in the next drop of SDK and also update in forum about
it.
On the host side though, he is always notified when he enters
if there are pending users knocking to enter. See the KnockingQueue
example in case you want to explore that.
Thanks
Hironmay Basu -
Allowing a user to create/drop tables in another users schema
We have a central shared schema (TEAM). So we can monitor who is doing what users have there own login(USER1, USER2...). Is there a way to allow a user to create/drop objects in another user.
I.e.
SQL> connect USER1
SQL> create team.table1(col1 char(1));
SQL> drop table team.table1:
How can this be set up?
BenHere is what you can do, If you want to keep track of what users are doing.
Open the glogin.sql file and set the spool like this
spool /oracle/audit/SID_&_user.logEverytime user logs in it will be populated and you will be able to see who is doing what.
You can remove the write permission on glogin.sql so that no one can modify it.
You also need to create a script like this, which would rename it every time same user would login.
#!/bin/ksh
time=`date +"%b"_"%d"_"%H"_"%M"`
##you need to pass some more variables and while loop to include all the users## ( This is just for an example)
if [ -f /oracle/audit/SID_SYS.log ]
then
mv /oracle/audit/SYS.log /oracle/audit/SYS.log.$time
fiEdit the glogin.sql file with this script information like this
host /oracle/audit/file.kshHope this helps, if you need more information let me know.
Maybe you are looking for
-
I have an executable JAR file that uses the CommAPI - which is installed properly - i.e. when I run the program in non-jar form it works fine: C:> java ISC_Knox/ISC_KnoxApplicationHowever when I run it in jar form I get an class-not-found exception C
-
If I buy a new hard drive, or format my current one and reinstall my OS and Adobe apps, will this count as installing on a 'second computer'? If so, how then do I go about ACTUALLY installing the apps on a second computer if I'm unable to 'de-registe
-
SSRS 2012 Displaying unwanted subtotal rows in reports
This looks like an Issue that has been noted and solved in prior versions of SSRS however we are now seeing similar issues in SSRS 2012 and have been unable to find a solution to this yet... Basically when we export a report with groupings and no sub
-
We are using a https URL in URL iview and it is causing the issue. The issue is it is going out of the portal, thought it is opened in the same window. The portal URL is not more seen and is overwritten by the URL iview URL, and also the portal top m
-
I have generation 2 ipod and recently purchased a generation 3 for my husband. when I turn the hold button to hold the i pod shuts off and when I plug it into the USB into the computer it doens't regester in itunes. I tried reseting the ipod, rebotin