I have stood up a WebLogic server. I'm trying to create a basic domain so I can access the admin console.
I run wlst.sh, and I run the following:
execfile('/opt/oracle/products/Middleware/wlserver/common/templates/scripts/wlst/basicWLSDomain.py')
This errors out with the following:
Error: writeDomain() failed. Do dumpStack() to see details.
Exiting WebLogic Scripting Tool.
Looking at the basicWLSDomain.py file, I see the call writeDomain() is as follows:
writeDomain('/opt/oracle/products/Middleware/user_projects/domains/basicWLSDomain')
But WLST exits before I can run dumpStack(), so I'm unable to grab the stack trace to see exactly what is happening.
Is there any trick to this?
Thanks in advance!
EDIT: It's worth noting that the user_projects directory didn't exist. I originally thought that was the problem with writeDomain(), but I created this directory and the domains sub directory but it still failed.
I was able to find a resolution to this.
First off, to prevent WLST from exiting, I had to comment out the last line of basicWLSDomain.py on the exit() call. Then WSLT didn't exit after the script completed.
Running dumpStack() showed that the password wasn't set for the weblogic user.
In the Define the user password for weblogic. section, adding the line cmo.setPassword('...') resolved this.
Related
I am running Apache Directory as a service on Windows 10.
I installed and ran the service and it ran without difficulties. Then, using the Apache Directory Studio (in Schema Mode), I created a new schema project, added a new schema with a single object type and a single attribute type, exported the new schema information to an LDIF file, and imported it back into the LDAP browser (as instructed in https://directory.apache.org/apacheds/basic-ug/2.3.1-adding-schema-elements.html).
As instructed, I then attempted to restart the ApacheDS service.
The ApacheDS service now will not start! When I attempt to start it now, it consistently shows the following failure message:
error 1067: the process terminated unexpectedly
Does anyone know what is broken in the server that causes this failure? How can I fix this problem and get the service to run again?
The error could be anything, and might be as well unrelated to the schema update, to get more debug info, change FATAL in conf to DEBUG.
https://directory.apache.org/apacheds/advanced-ug/5.3-logs.html
im using oracle sql developer to make my database, but now i stopped to work.
it wrote this:
An error was encountered performing the requested operation:
Listener refused the connection with the following error: ORA-12514,
TNS:listener does not currently know of service requested in connect
descriptor
Vendor code 12514
i also tried to make new connection but it didnt help
pls help me,i dont know what to do, i need this to do my homework
when i tried to change connection it wrote this:
An error was encountered performing the requested operation:
ORA-01031: insufficient privileges
01031. 00000 - "insufficient privileges"
*Cause: An attempt was made to change the current username or password
without the appropriate privilege. This error also occurs if
attempting to install a database without the necessary operating
system privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
if the user was granted the necessary privilege at a higher label
than the current login.
*Action: Ask the database administrator to perform the operation or grant
the required privileges.
For Trusted Oracle users getting this error although granted the
the appropriate privilege at a higher label, ask the database
administrator to regrant the privilege at the appropriate label. Vendor code 1031
Please check the services are running:
OracleOraDb11g_home1TNSListener and OracleServiceORCL.
You're going to have to do some troubleshooting; Here are a couple of suggestions:
ORA-12514 Tips
ORA-12514 TNS:listener does not currently know of service requested in connect descriptor
How to resolve error: ORA-12514
The service name ,you are using should be in sid column and not in service name entry box.
For example, the service name provided for you is overflow,you have to mention it in
ex:10.171.1.24:1521:overflow
Sid : overflow
Service : leave blank
Test the connection
Go to Services
check whether the "ORACLEServiceORCL" is running or not.
if not running then right-click on it and click start.
Your problem may solve this.
Happy coding :D
This worked for me- Close your SQL Developer and launch again.
I had the same issue after restarting my PC and could not access my local database. This fixed it.
Go to Run > services.msc > Services (Local) > OracleService
Right-click on OracleService > Properties > Log On
Make sure Local System Account is checked then press OK.
Stop the OracleService and restart it. It should be working now.
Mine was working fine till last night but this morning I found the said problem. I checked OracleOraDb11g_home1TNSListener and OracleServiceORCL was running and in "Started" status but still issue was there.
Just restarting both the services solved my issue. I suggest just try this once to save your time before exploring other solutions.
I have a SQL job created on SQL Server Agent with Type:Operating System(CmdExec).
I have the following error in the log file generated.
Source: ST_CheckSrcFile
Description: Exception has been thrown by the target of an invocation.
And this is executed correctly when the command line is executed on the Server System thru cmd.
Anybody have a clue why this could be happening?
Yes, you have a coding issue. What that issue is, cannot be determined from your question's current lack of detail.
Since it works fine outside of Agent but fails from within, my prime assumption would be that you are accessing a file or network resource and the account SQL Agent uses, or the designated proxy for Job Steps of type CmdExec, do not have access to the resource.
It could resolved by simply using a UNC instead of a mapped drive letter or by granting the acccount rights to file system on the location machine or a myriad of other approaches but unless we know what the code is doing, we can't be more specific than this.
I have configured a sql job which backups the databases and then transfer them to a remote location in another step. On command prompt my command is working fine but when I schedule this in a job I found the error :
Executed as user administrator. Logon Failure Unknown User Name or Bad Password. 0File(s) copied . Process Exit code 0. The step succedded.
I want to solve these issue and I also want that if does get transferred then job should report failure but it doesn`t show any such message.
I just want that when no files get copied i.e. 0File(s) copied . it should notify failure job .
Thanks
Nitesh Kumar
One way is to use a Script Task to check if there is a file you want to copy. If there is one, the process can proceed, if not, the step can result in an error. You do this by adding
Dts.TaskResult = (int)ScriptResults.Failure;
to the end of the script task logic.
Anyways i dont know your package design so there might be more suitable ways.
The issue has been solved . As the remote location folder was shared and was accessible to every one. My command was working fine from command prompt , even any user was able to create their own file on that location and also able to delete the file from that location.
The issue was related to user. My job was being executed by servername\administrator and remote location administrator password was changed due to that bad password error occurred. I told my IT Team about the problem and they reset the server password as older one, and my job began to work fine.
The issue was solved.
I just want to know how my sql job authenticates the server login as I go through the script of my job and found nothing helpful regarding authentication.
Can any one explain it to me.
Thanks
Nitesh Kumar
Scenario:
If i try to start the server as a window service it gives an error stating that ceradentials are not correct.However on correcting the credentials in boot.properties when i try to start the server again it gives the same error.Any alternative for starting the server.I gave the same username and password in my startup Script and Boot.properties.
Scenario 2: If i start the server remotely through console then will it come up?
Thanks in advance.
Regards,
Preet
If i try to start the server as a window service it gives an error stating that credentials are not correct.
Then they aren't. Maybe provide more details on what you do exactly and the error message.
If i start the server remotely through console then will it come up?
First, if your credentials are not correct, then it won't change anything. Second, if you don't have a node manager configured, this won't be possible. Provide more details.