Creation of resource JDBC with WLST
HelloI'm new to WSLT (and Python too, actually). I used model EPCO for a WLST to create a JDBC data source in my managed server. It is is the script:
If __name__ == "__main__":
from wlstModule import *.
print ' from the script... »
username = 'Abdel Davis.
password = "welcome1"
URL = "t3: / / localhost:8001'"
Connect (username, Password, URL)
Edit()
startEdit()
dsname = "TesDataSource."
Server = "osb_server1".
CD("Servers/"+Server)
target = cmo
CD("..) /..")
Print "creating JDBCSystemResource with the name ' + dsname"
jdbcSR = create (dsname, "TestJDBCResource")
theJDBCResource = jdbcSR.getJDBCResource)
theJDBCResource.setName ("TestJDBCDataSource")
connectionPoolParams = theJDBCResource.getJDBCConnectionPoolParams)
connectionPoolParams.setConnectionReserveTimeoutSeconds (25)
connectionPoolParams.setMaxCapacity (100)
connectionPoolParams.setTestTableName ("SELECT * FROM DUAL")
dsParams = theJDBCResource.getJDBCDataSourceParams)
dsParams.addJNDIName ("ds.test")
driverParams = theJDBCResource.getJDBCDriverParams)
driverParams.setUrl ("jdbc:oracle:thin:@localhost:1521:XE")
driverParams.setDriverName ("oracle.jdbc.xa.client.OracleXADataSource")
driverParams.setPassword ("debu")
driverProperties = driverParams.getProperties)
user name = driverProperties.createProperty ("user")
userName.setValue ("debu")
dbName = driverProperties.createProperty ("DatabaseName")
dbName.setValue ("XE")
jdbcSR.addTarget (target)
Save()
Activate (Block = "true")
Print "made the configuration of the data source.
Running the script generated this error:
Traceback (innermost last):
File "G:\Oracle\Middleware\oepe_helios_11GR1PS3_x64\plugins\org.python.pydev.debug_1.5.7.2010050621\pysrc\pydevd.py", line 978, in?
File "G:\Oracle\Middleware\oepe_helios_11GR1PS3_x64\plugins\org.python.pydev.debug_1.5.7.2010050621\pysrc\pydevd.py", line 780, term
File "C:\OEPE\workspace\SetEnvironment\src\DatabaseSettings.py", line 23, in it?
File "C:\Users\DEBOJI~1\AppData\Local\Temp\wlst_module28197796071029187392.py", line 89, create in
File "C:\Users\DEBOJI~1\AppData\Local\Temp\wlst_module11921031258847466614.py", line 1848, in raiseWLSTException
WLSTException: Error occurred when executing create: failed to create type MBean TestJDBCResource. You can only create children of the current CMO MBeans.
To view the types of children that you can create, use listChildTypes().
Could someone please tell me what I'm doing wrong?
Hi Abdel Davis,
Try to do the following
server='osb_server1'
cd("Servers/"+server)
target=cmo
cd("../..")
Remove the block above your WLST Script, it looks like the problem the current INCORRECT management object as the error operating system indicates also the same.
«WLSTException: error occurred when executing create: failed to create type MBean TestJDBCResource.» You can only create children of the current CMO MBeans. "
Please see the script which is very similar to your script below:
Subject: Creation of DataSource WLST with encrypted password
http://middlewaremagic.com/WebLogic/?p=1400
* #Additionally *.
I also suggest you have a look at the scripts below that would make you employment, check them out.
Subject: Creation of WebLogic DataSource using WLST and the properties file
http://middlewaremagic.com/WebLogic/?p=4751
Subject: Creation of multiple DataSource with WLST properties file
http://middlewaremagic.com/WebLogic/?p=6248
These WLST scripts require no modification/alteration in real WLST scripts these scripts use properties files, changes made in the properties file so without touching the real scripts due to which it becomes really easy to manage/modify WLST scripts.
Kind regards
Véronique Mody
Tags: Fusion Middleware
Similar Questions
-
Creation of the OSB with WLST field
Hello
I am trying to create a domain using WLST script for version 10.0 on redhat 5.0.
The WLST script invoked by the ANT, creates a simple field of OSB, with only adminserver, with workshop and bus applications service.
I understand JMS Reporting provide needs table in the schema for logging and this application is also created in the field, when I create the field.
Assuming that the schema for the reporting application is not created yet, when I try to start weblogic domain, he complains about file "weblogic_eval$ 1.wal" in the root directory, I know that this file is created if I create a domain by using the configuration wizard and run scripts of creation of OSB scheme during the domain design process , instead I think that he should complain connection due to schema error is not available?
My Questions:
1. What is the best way to create a schema for the application in question, during field automated build process that we need to create new areas of the script and be able to start and deploy applications on it. which will also require to have the db for the application schema.
2. what happens if I create a db schema oracle report or any other database other separately then pointbase so how to avoid the error file ' weblogic_eval$ 1.wal ' to complain? What practice is in place or recommended for my situation necessary?
Thanks in advance!
SALMy fault. http://download.Oracle.com/docs/CD/E13222_01/WLS/docs90/config_scripting/domains.html#1001249--je mistaken or I don't know how to operate in offline mode.
Another suggestion is to use templates to create domains (that I tried on my local machine now) and can be easily automated.
(1) model of domain created (http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/reference.html#1029279, http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/reference.html#1203320)
(2) change of the /config/config.xml in the container of the template to remove (Reporting of JMS provider, Message Reporting trap) and other changes
(3) used the jar model modified to create new areas.
Maury
Published by: mneelapu on October 23, 2009 15:45
-
Deployment of a COmposite of SOA with WLST
Hello
can someone tell me the step by step procedure to deploy a composite SOA with WLST...
Thanks in advance...Hello
Go to the similar directory in your server in the command prompt...
C:\Oracle\Middleware\home_11g\Oracle_SOA1\common\bin
Run the command WLST..., wlst.cmd for windows, wlst.sh for unix...
now...
before you run the deploy command, make sure that you generate the file for the composite to deploy SAR---> deploy to SAR---> check that the file must exist in the project source directory location.
now back to the command prompt...
WLS: / offline > sca_deployComposite (serverURL ="http://localhost:8001",user="weblogic",password="welcome1",partition="Enterprise",sarLocation="C:\work\Test-App\WLSTSoaService\deploy\sca_WLSTSoaService_rev1.0.jar",forceDefault=true,overwrite=true);)
Press enter, and then the command will be executed with success...
check the composite in the EM console, it will be there.
Hope this helps,
N -
JDBC and creation of external tables with positions
Hello
This could be a trick question or I'm probably going in circles with this one. I know that it is not possible to call the pl/sql command ("together define") using a jdbc connection. Correct me on this one, if I'm wrong ;)
So what I want because I want to run the following using a CallableStatement stmt:
-----
command prompt
Guest: CREATE TABLE 'TEST_IN '. "" TEST_RECEIPT_EXTERNAL "...
command prompt
CREATE TABLE 'TEST '. "" TEST_RECEIPT_EXTERNAL ".
('APPLE' VARCHAR2 (8 CHAR)
, VARCHAR2 (1 CHAR) 'PIE '.
'RECEPTION' VARCHAR2 (58 CHAR)
)
EXTERNAL ORGANIZATION
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY 'TEST_IN '.
ACCESS SETTINGS
(records delimited by newline
fields)
APPLE position (1: 8) CHAR (8),
PIE of the post (9: 9) char (1),
RECEIPT of the post (10: 67) CHAR (58))
)
LOCATION
("TEST_IN": "FLIP.) FLOP.19760104170600'))
REJECT LIMIT UNLIMITED
1 PARALLEL
/
-----
that gives me the expected error:
Parameter Missing or OUT to index: 1
Any thoughts on this would be very useful - thanks in advance,
SaschaUse a regular statement. There is no reason to DDL like that with a callable statement.
You should be OK then. -
Sort by creation date Resource Pools
Hi all
First of all, all the PS newbie here...
I'm trying to figure out a little PS code to extract that information from our vCenter server.
If I use:
Get-ResourcePool | Sort-Object ID - descending
I got the list based on the prime number, so, for example:
RP01 ResourcePool-resgroup-99
Healrp02 ResourcePool-resgroup-881
Healrp02 is mentioned after 01, even if it was created at a later date, all simply because the first number (9) is greater than 8.
Is there a way to list by the real resource pools, multiplication, so I can have at the end of the list based on the creation date?
Thank you
Luca.
Although I don't know that he'll give the resourcepools sorted by date of creation, you can sort on numbers in the id resourcepool with:
Get-ResourcePool | Sort-Object-descending - property {[int] $_.} {Id.Split("-")-[1]} | Select-Object - Property Name, Id
-
Identify an impasse resources graphic with 1 line and 1 table lock
Hi, I ran into occurrences repeated event deadlock graph at the bottom of this post and a few questions about this:
1. it seems that proc 44, session 548 holds a line lock (X). Is the boy, proc. 30, session 542, is trying to acquire a lock line (X) also or an exclusive table (X) on the table lock that contains this line?
2. under what circumstances would be something keep an exclusive table lock on line (SX) and to upgrade that to an exclusive table lock part (SSX) online?
3. our cxml_foldercontent table contains a column "structuredDataId" with a cxml_structureddata.id FK and a trigger ON DELETE SET NULL. This would help to explain why a "update" for a table (i.e.g cxml_foldercontent) would also need to acquire a lock on a foreign table, cxml_structureddata?
4. What is the difference between "current SQL statement:" and "for the session current SQL statement:"? This terminology is confusing. Session 542 running "update" or "delete"?
5. in the ' waiting lines: "section is - this mean 542 Session expected on obj - rowid = 0000BE63 - AAAL5jAAGAAA6tZAAK or that it is has the lock on the same row, and other things are waiting on this subject?
A couple of notes:
-the cxml_foldercontent.structuredDataId FK column already has a clue on this subject
Deadlock graph: ---------Blocker(s)-------- ---------Waiter(s)--------- Resource Name process session holds waits process session holds waits TX-003a0011-000003d0 44 548 X 30 542 X TM-0000be63-00000000 30 542 SX 44 548 SX SSX session 548: DID 0001-002C-000002D9 session 542: DID 0001-001E-00000050 session 542: DID 0001-001E-00000050 session 548: DID 0001-002C-000002D9 Rows waited on: Session 542: obj - rowid = 0000BE63 - AAAL5jAAGAAA6tZAAK (dictionary objn - 48739, file - 6, block - 240473, slot - 10) Session 548: no row Information on the OTHER waiting sessions: Session 542: pid=30 serial=63708 audsid=143708731 user: 41/CASCADE O/S info: user: cascade, term: unknown, ospid: 1234, machine: program: JDBC Thin Client application name: JDBC Thin Client, hash value=2546894660 Current SQL Statement: update cascade.cxml_foldercontent set name=:1 , lockId=:2 , isCurrentVersion=:3 , versionDate=:4 , metadataId=:5 , permissionsId=:6 , workflowId=:7 , isWorkingCopy=:8 , parentFolderId=:9 , relativeOrder=:10 , cachePath=:11 , isRecycled=:12 , recycleRecordId=:13 , workflowComment=:14 , draftUserId=:15 , siteId=:16 , prevVersionId=:17 , nextVersionId=:18 , originalCopyId=:19 , workingCopyId=:20 , displayName=:21 , title=:22 , summary=:23 , teaser=:24 , keywords=:25 , description=:26 , author=:27 , startDate=:28 , endDate=:29 , reviewDate=:30 , metadataSetId=:31 , expirationNoticeSent=:32 , firstExpirationWarningSent=:33 , secondExpirationWarningSent=:34 , expirationFolderId=:35 , maintainAbsoluteLinks=:36 , xmlId=:37 , structuredDataDefinitionId=:38 , pageConfigurationSetId=:39 , pageDefaultConfigurationId=:40 , structuredDataId=:41 , pageStructuredDataVersion=:42 , shouldBeIndexed=:43 , shouldBePublished=:44 , lastDatePublished=:45 , lastPublishedBy=:46 , draftOriginalId=:47 , contentTypeId=:48 where id=:49 End of information on OTHER waiting sessions. Current SQL statement for this session: delete from cascade.cxml_structureddata where id=:1
That basically there a sense today?
Lol your description is more on linked in memory on relational tables and indexes lists!
This means that there is a more verbose parameter for these traces of the impasse?
Lol other SQLs would also be included in the deadlock trace.
Hemant K Collette
-
Creation of page template with the specified base style
I have 4.3 Pages on my Mac mini OSX 10.8.5. I want to create a template for my documents with text in a particular font, but also with all the notes in the same font.
I searched, found and tried all sorts of ways to ensure that all notes are created in my chosen font, but my attempts have failed. Any help or advice wll be gratefully received and acted.
Michael,
Pages ' 09 v4.3 will not allow a frame of reference custom before the creation of reference text. Set a reference to your specifications and then by creating two new character styles that proportionately adjust the exponent, and then the reference text non-exposant - could be saved in the model.
In the new document, you insert notes and then apply those styles at least on the first note, because with the following notes, you could copy and paste the first note of the selected character style. He said...
-
When I run firefox and its connected to the net I find firefox slows down my browseing experience, I studied this by looking at the XP Task Manager and with firefox running that I use between 44 and 56% of cpu resources, the culprit is plugin container.exe but why is - it because all my plugins are disabled why plugin container active at all if the plugins are used... never had this problem with older versions of firefox... any ideas?
Follow the suggestions mentioned in the following articles:
Check and tell if its working.
-
Portable JDBC with SQL Server on 64-bit Windows computer connection
I'm trying to set up this connection using a call for open source Modelsphere.
I am running home premium windows version 7.
I downloaded the 4.0 driver JDBC Microsoft SQL Server (sqldbc4.jar) and put it in this directory:
c:\Program Files\Java\JRE6\Lib\Ext
The class I use the Modelsphere application is: com.microsoft.jdbc.sqlserver.SQLServerDriver
The database url is: jdbc:sqlserver://localhost: / CallSheet.
I enabled using the Configuration of TCP/IP Manager.
I also enabled the telnet, but when I try to command: telnet 192.168.0.0 1433 or telnet 192.168.1.1 1433 I get an error saying "could not open connection to the host on port 1433: connection failed."
What else, need to do or change to get the connection work?
Thanks in advance.
Hi RStraka,
I had a problem with SQL Server and I posted in the Microsoft Technet folder and it has helped me.
http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/
All the best!
-
My Details of the operating system environment:
OEL 6.5 64-bit
Database version: 11.2.0.4.
I have set up my lab for the infrastructure of grid with ASM on Stand alone server. Everything was going well with no error. My ASM Diskgroup is mounted, State resource t crsctl shows everything online, also I can connect using sys / as sysasm, my interlocutor is up and running for ASM, creating database using DBCA it gives an error 'ORA-28000 account locked' I'm confused which account is blocked because I have not yet created a data base. Help, please
Thank you
Sunil
Hello
Add the dba group to the oracle user.
And try again
Best regrads
-
VRA 6.2 REST API: resource Action with object mapped by VRO
I created a resource Action (Advanced Services - resources Actions) who calls a workflow orchestrator (VRO) to do a few things. The VRO workflow takes three objects as inputs: 2 channel and a VC:VirtualMachine. Connecting the web GUI, when a user selects the action for the specific virtual machine, they are presented with a form asking to specify the content of the 2 strings. The VC:VirtualMachine object is transparant and (I think) is automatically mapped internally to the enabled virtual machine. This works very well at the launch through the web GUI. Now, I need to create the same scenario using the REST API. I created the "ResourceActionRequest" object JSON and included the 2 strings as indicated in the request data, but I have no idea how to do to add the VC:VirtualMachine object to the request. I thought maybe it was too transparent, but I get an error if I try to send the JSON without the 3rd data item. For example, here is my "ResourceActionRequest" object JSON:
{
"@type": "ResourceActionRequest",
'resourceRef': {}
'id': '< resourceRef-id >.
},
'resourceActionRef': {}
'id': '< resourceActionRef-id >.
},
'Organization': {}
"tenantRef': '< label >."
"tenantLabel': '< label >."
'subtenantRef': '< subtenantRef > ',.
'subtenantLabel': '< subtenantLabel > '.
},
"State": "SUBJECT."
"requestNumber": 0.
'requestData': {}
"items": [{}
"key": "provider-MyFirstCustomProperty."
'value': {}
"type": "string",.
"value': ' blah, blah, blah."
}
},
{
"key": "provider-MySecondCustomProperty."
'value': {}
"type": "string",.
"value': ' blah, blah, blah."
}
}]
}
}
I don't know how to provide the VC:VirtualMachine in the application. Any help would be appreciated. Thank you!
-Stephen
Hey Stephen,
I do not see the bits that I expect:
{
"key": "provider-MachineName."
'value': {}
"type": "string",.
'value': 'vra045 '.
}
}
It's vRA identity Machine which must correspond to the rear.
Grant
-
No computing resources associated with endpoints
Hello
Total newbie to vCAC. I am building a VINE and I'm following the step in Kendrick Coleman blog. How to install vCloud Automation Center (vCAC) 6.0 - part 5 - Agent, point to endpoint and Group Configuration. Tech blog | Blo...
I did it to create endpoints where I selected vCenter. The next step is to create a group of fabric.
However, I can't see and select calculated resources. Any idea what I can hurt?See you soon
I found a few errors in the log. The account I used got a
The work of VRM recovery: the request failed with HTTP 401 status: unauthorized error
Not sure why this would be the case, because there on vCenter and IAAS server admin rights.
Changed to a different account that has administrator rights and rebooted and seemed to be right. -
Database adapter - creation of Datasource question - using WLST
Hello
Im tring to create a weblogic multi data source in a cluistered env osb using wlst script and get a problem by updating the plan via the script.
im getting the plan through this command path in WLST planPath = get('/AppDeployments/DbAdapter/PlanPath')
but the problem is that I do not get the full path instead, I get something like this "osb_cluster/plans/DBAdapter/DbAdapterPlan.xml".
When I run the script even in the Environment node, the script runs correctly and update the path of the plan. Also, I get the plan full url like this path ' / u9000/app/oracle/product/fmw/osb_11.1.1.5.0/Oracle_OSB/soa/connectors/DBAdapter/DBAdapterplan.xml'
is there a problem with my clustered environment. Any help is appreciated!
Thank you
knockaertHello
I think that wlst script retrieves just the string located in the config file... Check the file config.xml for your domain and correct if necessary.
Research of...
DbAdapter
??? See you soon,.
Vlad -
Use of the Resource Pool with vSphere Essentials
A silly question but I have to ask anyway:
I have a license of vSphere Essentials with my two hosts ESXi4. I knew that he was not in vSphere DRS. What was not so obvious to me, it's that you need DRS activated in order to create a pool of resources to the cluster level vSphere without it. (The option to create a new cluster is grayed out). http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1004098
So my question is:
Are there benefits to creating a cluster if you do not have DRS? I now have to double and create pools of resources at the level of the host for two guests, who is an administrative burden. In addition, one of the main reasons I have used resource pools was to facilitate the access rights based upon roles to specific virtual machines. These two will now have to be defined for each host.
We greatly appreciate your comments on this
Other than the ability to use the VCA mode and setting up the location of the pagefile. According to me, there isn't much more to a cluster if you use no HA or DRS. Since you do not have DRS yor cannot create pools of resources that span multiple hosts within a cluster.
You will need to create individual pools of resources on each host by taking your host from a cluster and have just in the data center.
OBM
-
Group creation ESXi 4 port with respect to the host only vSwitch
Hi all
ESX experts out there confirm what the 'group of ports' process is for the creation and how it relates exactly to host only vSwitch?
I have created a vSwitch1 as host only with no attached NIC (as by the other topic, I found) I want to clone and initialize some test of hot P2V but they don't have any real network connections.
I use vSphere to do this, and I'm new to ESX...
You will still need to create a virtual machine on the new vSwitch port group, but if the vSwitch has no physical NIC are attributed to him, then the traffic on this vSwitch will be isolated.
Dave
VMware communities user moderator
Now available - vSphere Quick Start Guide
You have a system or a PCI with VMDirectPath? Submit your specifications to Officieux VMDirectPath HCL.
Maybe you are looking for
-
Repetitive requests for password
I use AOL mail. Thunderbird has recently begun repeatedly asking for passwords, even if they are registered. Sometimes clicking on try again or x'ing out seems to let go of the front. I go to pop IMAP so don't know if that's part of the problem. It h
-
HDD on Satellite Pro A300 problem
Okay, so basically, my laptop broke down and I am addicted in my hard drive via a usb cable to a laptop different, copy of my files on to this laptop. Now my problem is that all the time when I was running out of space on my laptop, I transferred to
-
Stylus stops working - Portege M200
I have a Portege M200. The pen stops working after a few minutes use. Windows XP displays system error event log against the driver. When I reboot it starts working again. The touchpad still work OK. Drivers have been updated.Any ideas?
-
I bought Camileo H30, it is oki, but there is a problem - UM.When I watch the video with the camileo h30 on my computer and if there is not any music I hear hum / sough. What can I do with it?
-
Satellite L500 - 1 EV - need driver for high definition audio bus
Hi all I have a new Toshiba Satellite L500 - 1 EV and I use Windows XP SP2. I can't find driver for "Audio Device on High Definition Audio Bus". Help, please! Thanks in advance.