Changes between Version 1 and Version 2 of notes/oracle


Ignore:
Timestamp:
2017-10-20T09:31:30Z (7 years ago)
Author:
root
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • notes/oracle

    v1 v2  
    11= заметки по `oracle`
    2 == остановка и запуск апача
     2== остановка и запуск `apache`
    33{{{#!bash
    44sudo -u oracle /opt/oracle/product/apache/opmn/bin/opmnctl stopall
     
    1313/opt/oracle/product/apache/Apache/Apache/bin/apachectl start (restart)
    1414}}}
     15
     16[[br]]
     17== `enterprise manager`
     18запуск:
     19{{{
     20#!bash
     21sudo su -l oracle
     22export TZ=Etc/GMT+6
     23/opt/oracle/product/10.2/bin/emctl start dbconsole
     24exit
     25}}}
     26[[br]]
     27после работы его лучше остановить, чтобы не жрал память:
     28{{{
     29#!bash
     30sudo -u oracle /opt/oracle/product/10.2/bin/emctl stop dbconsole
     31}}}
     32
     33[[br]]
     34== перезапуск инстанса
     35{{{
     36#!bash
     37export ORACLE_SID=ftest10
     38( cat <<EOF
     39 connect / as sysdba
     40 shutdown abort;
     41 startup;
     42EOF
     43) | sqlplus /nolog
     44}}}
     45
     46[[br]]
     47== toad debugger
     48пользователю оракла, под которым происходит отладка нужно дать привилегию:
     49{{{
     50#!sql
     51grant debug connect session to user;
     52}}}
     53[[br]]
     54а toad.exe добавить в исключения data execution prevention: панель управления - система - дополнительно - быстродействие - предотвращение выполнения данных - добавить - toad.exe
     55
     56[[br]]
     57== если не работают отчёты sqlplus в терминале под windows 2003
     58
     59=== Applies to ===
     60
     61    * Oracle Server - Enterprise Edition - Version: 10.1.0.2.0 to 10.2.0.1.0
     62    * Oracle Server - Standard Edition - Version: 10.1.0.2.0 to 10.2.0.1.0
     63    * Microsoft Windows 2000
     64    * Microsoft Windows XP
     65    * Microsoft Windows Server 2003
     66
     67=== Symptoms ===
     68
     69When logged on to the Windows server as a non-Administrator OS account using Microsoft Terminal Services client (mstsc.exe), starting SQL*Plus fails with
     70
     71    * SP2-1503: Unable to initialize Oracle call interface
     72    * SP2-0152: ORACLE may not be functioning properly
     73
     74Starting SQL*Plus works when logged on to the Windows server using an Administrator OS account.
     75
     76Starting SQL*Plus works when logged on locally to the Windows server console using the non-Administrator OS account.
     77
     78==== Cause ====
     79
     80The 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.
     81
     82==== Solution ====
     83
     84Assign the "Create global objects" user right to the non-Administrator account.
     85
     861. Click Start, point to Programs, point to Administrative Tools, and then click Local Security Policy.
     872. Expand Local Policies, and then click User Rights Assignment.
     883. In the right pane, double-click Create global objects.
     894. In the Local Security Policy Setting dialog box, click Add.
     905. In the Select Users or Group dialog box, click the user account that you want to add, click Add, and then click OK.
     916. Click OK.