Showing posts with label SQLPLUS problem. Show all posts
Showing posts with label SQLPLUS problem. Show all posts

Wednesday, 24 December 2014

SP2-1503: Unable to initialize Oracle call interface /SP2-0152: ORACLE may not be functioning properly

Error: 

C:\Users\Mizan>E:\OraHome_1\BIN\sqlplus.exe
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly

When logged on to the Windows server as a non-Administrator OS account using Microsoft Terminal Services client (mstsc.exe), starting SQL*Plus fails with

SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly

Reason:

Starting SQL*Plus works when logged on to the Windows server using an Administrator OS account.

Starting SQL*Plus works when logged on locally to the Windows server console using the non-Administrator OS account.
Cause

The issue is related to a Windows Security configuration. The problem is caused by a security policy called "Create Global Objects". The user account that is used to run the program does not have the "Create global objects" user right. This security policy was introduced with Windows 2000 SP4, and determines if applications started during a Terminal Services session can create or access globally accessible memory. By default, members of the Administrators group, the System account, and Services that are started by the Service Control Manager are assigned the "Create global objects" user right.


Solution:

Assign the "Create global objects" user right to the non-Administrator account.

1. Click Start, point to Programs, point to Administrative Tools, and then click Local Security Policy.
2. Expand Local Policies, and then click User Rights Assignment.
3. In the right pane, double-click Create global objects.
4. In the Local Security Policy Setting dialog box, click Add.
5. In the Select Users or Group dialog box, click the user account that you want to add, click Add, and then click OK.
6. Click OK.







Saturday, 30 August 2014

[Solved] Error 6 initializing SQL*Plus SP2-0667: Message file sp1.msb not found

Error:

Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software director

[oracle@bachapp mesg]$ /u01/app/oracle/product/11.2.0/db_1/bin/sqlplus
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory


Reason:
ORACLE_HOME and ORACLE_SID not set properly.

Solution:

[oracle@bachapp mesg]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1/
[oracle@bachapp mesg]$ export PATH=$PATH:$ORACLE_HOME/bin
[oracle@bachapp mesg]$ export ORACLE_SID=orcl
[oracle@bachapp mesg]$ sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 31 11:16:34 2014

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Enter user-name: /as sysdba
Connected to an idle instance.