Error: CLUSTER_NODES doesn’t contain the LOCAL_NODE. Correct the CLUSTER_NODES and start the DeInstall tool again

trying to deinstall clusterware and getting the following error?

Caused by: oracle.ops.util.FatalException: Exited from Program.
[ Error: CLUSTER_NODES doesn't contain the LOCAL_NODE. Correct the CLUSTER_NODES and start the DeInstall tool again ]
        at oracle.install.db.deinstall.core.NodeLivlinessCheck.setRemoteNodes(NodeLivlinessCheck.java:242)
        at oracle.install.db.deinstall.core.CheckInstall.checkConfig(CheckInstall.java:414)
        ... 6 more

deinstall clusterware manually:

n all remote nodes, as root execute:

  $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose

Once the above command finishes on all remote nodes, on local node, as root execute:

  $GRID_HOME/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

reference: How to Deinstall Oracle Clusterware Home Manually [ID 1364419.1]

Permanent link to this article: http://devnumbertwo.com/error-cluster_nodes-doesnt-contain-local_node-correct-cluster_nodes-start-deinstall-tool/

SEVERE: This repository requires DAC Server running in Web Server mode!

the issue: when trying to start the dac server (startserver.sh) you get:

Feb 8, 2013 9:03:09 PM com.siebel.analytics.etl.conf.RepositoryPropertiesManager refresh
INFO: Reading repository properties
Feb 8, 2013 9:03:09 PM com.siebel.etl.net.QServer 
SEVERE: This repository requires DAC Server running in Web Server mode!

fix it: you probably forgot to change the settings in the dac client. you don’t need the dac server running in order to make the following changes in the dac client:

Tools -> DAC Server Management -> Repository Configuration -> Select standalone mode -> Set the host & port

on the dac server:

execute StandaloneServersetup.sh in DAC Server and set the correct information (if you haven’t don so already)
shutdown and restart the dac Server (startserver.sh) — it should start fine now

Permanent link to this article: http://devnumbertwo.com/severe-repository-requires-dac-server-running-web-server-mode/

update or reset the dac admin password for the dac client

how to reset the dac admin password for the oracle dac client:

  1. Log into the DAC repository database (using sql)
  2. Locate the table W_ETL_USER and delete all records
  3. Log on DAC client with default user/password as Administrator/Administrator

Re-create the dac admin user again by performing the following:

  1. modifying the existing connection by clicking on Configure in the dac client login screen
  2. Modify Connection -> Test Connection (just to test to see if you need to change the table owner login)
  3. Go back to the dac client login screen, login as the table owner
  4. Confirm the login on the Creating default Administrator account… screen
  5. Create the dac admin account on the next screen
    dacadmin

Permanent link to this article: http://devnumbertwo.com/update-dac-admin-password-dac-client/

weblogic error: Could not read or create index on log file… persistent store record id could not be found

the problem:  getting “Could not read or create index on log file… persistent store record id could not be found” error in weblogic:

<Jan 27, 2014 12:46:04 PM HST> <Error> <Diagnostics> <BEA-320055> <Could not read or create index on log file /u01/app/oracle/domains/testdomain/servers/AdminServer/logs/testdomain.log
weblogic.store.PersistentStoreException: [Store:280029]The persistent store record 3,431 could not be found
at weblogic.store.io.file.FileStoreIO$TypeRecord.getSlot(FileStoreIO.java:1097)
at weblogic.store.io.file.FileStoreIO.deleteInternal(FileStoreIO.java:422)
at weblogic.store.io.file.FileStoreIO.delete(FileStoreIO.java:314)
at weblogic.store.internal.DeleteRequest.run(DeleteRequest.java:28)
at weblogic.store.internal.StoreRequest.doTheIO(StoreRequest.java:64)
Truncated. see log file for complete stacktrace

fix it by:

  • shutting down the server
  • removing the .DAT file in the <server>/data/store/diagnostics directory
  • start the server up again

Permanent link to this article: http://devnumbertwo.com/843/

wordpress plugin temporary home page

need a temporary home (or ‘under construction’) page for wordpress while you work on your site? no problemo! this plugin is so easy — WP Maintenance Mode

just install it, enable the “Plugin Activate” to true and set the title, header and text you want to appear on your page.

Permanent link to this article: http://devnumbertwo.com/wordpress-plugin-temporary-home-page/

unable to delete comments from wordpress

the problem: unable to delete comments from wordpress (even though the wp-admin)

the solution: go into the database and run this query to delete

DELETE FROM wp_comments WHERE comment_approved = 0

optionally, if you’d like to delete all spam marked comments:

DELETE FROM wp_comments WHERE comment_approved = 'spam'

Permanent link to this article: http://devnumbertwo.com/unable-delete-comments-wordpress/

weblogic: The admin server failed to authenticate the identity of the user weblogic starting the managed server

the problem: starting up a weblogic managed server gives you the following error:

<Jan 15, 2014 10:32:42 AM HST> <Error> <Configuration Management> <BEA-150021> 
<The admin server failed to authenticate the identity of the user weblogic starting the managed server. The reason for the error is .>
<Jan 15, 2014 10:32:42 AM HST> <Error> <Configuration Management> <BEA-150001> 
<An error occurred while connecting to the admin server to bootstrap through URL: http://localhost:7001/bea_wls_management_internal2/Bootstrap, user: weblogic
weblogic.management.configuration.ConfigurationException: [Configuration Management:150021]The admin server failed to authenticate the identity of the user weblogic starting the managed server. The reason for the error is .
at weblogic.management.provider.internal.BootStrapHelper.getBootStrapStruct(BootStrapHelper.java:128)
at weblogic.management.provider.internal.RuntimeAccessImpl.onConnect(RuntimeAccessImpl.java:597)
at weblogic.server.channels.RemoteChannelServiceImpl$2.run(RemoteChannelServiceImpl.java:302)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
>

the cause: this can be caused by changing the weblogic password and your boot.properties file hasn’t been updated OR weblogic hasn’t picked up the change in that file yet.

the fix: 

  1. shutdown the server giving the error
  2. edit the boot.properties located in the server’s security directory to contain (in plain text) the username and password –>  <domain>/servers/<server>/security/boot.propertiesExample:
    username=weblogic
    password=password123
  3. start the managed server through the startManagedServer script in the <domain>/bin directory — this will ensure the boot.properties file gets encrypted and registered
  4. the server should startup correctly without complain if the credentials in the boot.properties are correct. you can then shutdown the server and start it up through the node manager if you wish.

Permanent link to this article: http://devnumbertwo.com/weblogic-admin-server-failed-authenticate-identity-user-weblogic-starting-managed-server/

linux change string in multiple files

want to change a string in multiple files within a directory on linux (including all the sub-folders)?

here you go!

 

change directory to where your files are located

cd /u01/app/oracle/domains/weblogic/jdbc/config

 

then run this

find ./ -type f -exec sed -i 's/oldstring/newstring/g' {} \;

 

Permanent link to this article: http://devnumbertwo.com/linux-change-string-multiple-files/

weblogic data source error – IO Error: Connection reset

the problem: sometimes when you startup the weblogic servers you may receive something like this:

Exception in thread "main" java.sql.SQLRecoverableException: IO Error: 
Connection reset
        at 
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
        at 
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32
)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
        at 
oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSou

 --- or ---
Exception in thread "main" java.sql.SQLException: Got minus one from a read 
call
        at 
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:534)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:217)
        at 
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28
)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:527)
        at 
oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:
400)
        at 
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:287)
        at 
oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:204)

 

the solution: this is usually an indication that your data source may be setup incorrectly. HOWEVER, if your database is setup to display a security banner set by these parameters in sqlnet.ora

SEC_USER_AUDIT_ACTION_BANNER
SEC_USER_UNAUTHORIZED_ACCESS_BANNER

then this is a known bug causing the issue you are encountering. Search for bug 12582023 in My Oracle Support and there is a patch you can download to fix this.

Of course alternatively, you could just disable the banner on from showing up which should also remedy your connection issue.

Permanent link to this article: http://devnumbertwo.com/weblogic-data-source-error-io-error-connection-reset/

setting css style with javascript

this is a great article on setting the css style with javascript
http://www.vijayjoshi.org/2009/01/24/setting-stylecss-class-of-html-elements-from-javascript/

Permanent link to this article: http://devnumbertwo.com/setting-css-style-with-javascript/

Older posts «

» Newer posts