К основному контенту

Сообщения

Сообщения за июль, 2012

Weblogic Diagnostic Framework Run Bash Script (reboot managed server) - (bad practices)

Вообщем переодически сервер дохнет по: The WebLogic Server encountered a critical failure java.lang.OutOfMemoryError: Metaspace Reason: There is a panic condition in the server. The server is configured to exit on panic И хотя это гавно пишет типа  Reason: There is a panic condition in the server. The server is configured to exit on panic чёт ни хуя он ни куда не exit.... Вообщем т.к разбираться с тем чем он жрётся нет ни времени ни желания (оно обязательно появится)... как вариант можно приделать костыль... костыль будет заключаться в ребуте сервера при возникновении этой ошибки. Что значит для этого надо... Желания и понимание что так жить нельзя, и вообще... Делаем новый модуль называем скажем:  Reboot-OOMMetaSpace Идём в в новый модуль делаем Policy: Называем его OOM-Metaspace и говорит что это Server log: Жмём next в Configuration Policy пишем: log.logMessage.contains('java.lang.OutOfMemoryError: Metaspace')

Oracle BI + OVD System user could not be authenticated

Eсли при выполнении startManageWeblogic.sh bi_server1 видим следующую фигню: <16.07.2012 12:26:04 MSD> <Error> <oracle.bi.security.service> <OBI-SEC-00028> <System user could not be authenticated oracle.bi.security.service.SecurityServiceException: SecurityService::authenticateUserWithLanguage [OBI-SEC-00020] Authenticated user has an invalid GUID В saw.log при старте presentation service(с помощью opmn) попадает следующее: [2012-07-16T12:33:14.000+04:00] [OBIPS] [ERROR:1] [] [saw.security.odbcuserpopulationimpl.getbisystemconnection] [ecid: ] [tid: ] Odbc driver returned an error (SQLDriverConnectW). State: HY000.  Code: 10058.  [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 73006] Cannot obtain Oracle BI Servers from either the primary Cluster Controller (biptr) or the secondary Cluster Controller () specified for the clustered DSN. (HY000)[[ File:odbcuserpoploaderimpl.cpp Line:995 Location:    

ACL and Winnie the Pooh and the Blustery Day

Статей куча но в силу моих кривых рук у меня ни чего не получилось... 1. Задача есть пользователь oracle и его домашняя директория /home/oracle и есть пользователь peter c его домашней директорией /home/peter Задача: пользователь peter должен уметь создавать файлы в директории /home/oracle/Export ls -la /home/ drwxr-xr-x   8 oracle dba    4096 Июл 14 15:00 oracle drwxr-xr-x  77 peter  users  4096 Июл 14 15:16 peter Вроде всё просто берём перую попавшуюся статью например:  http://linuxcommando.blogspot.com/2008/01/part-2-how-to-work-with-access-control.html We want to share the directory among the marketing-g and sales-g groups and the user named george. Ну мы want только одного пользователя поидее всё проще.. и так: oracle@tmp:~> setfacl -m user:peter:rwx Export oracle@tmp:~> getfacl Export/ # file: Export/ # owner: oracle # group: oinstall user::rwx user:peter:rwx group::r-x mask::rwx other::r-x Ну вроде все права раздали, можно проверять...

Oracle expdp only grants

Найдено на оф сайте:  https://forums.oracle.com/forums/thread.jspa?threadID=850727 Ну реально крутааа... impdp directory=expdp dumpfile=FULL.dmp include=grant sqlfile=grant_only.sql соответственно в файле  grant_only.sql получаем только гранты из файла экспорта.

Oracle BI alternative authentication provider OVD(Oracle Virtual Directory)!

Вообщем адаптер AD уже есть и работает. BISystemUser существует исключительно в AD( ну и в OVD соответственно т.к типа мега join%) Пользователей будем вытаскивать по  sAMAccountName. http://172.20.16.71:7001/console/ -> Security Realms -> myrealm -> Providers создаем новый: Тут видны все основные настройки которые необходимо сделать. Save -> Active Changes После этого предалагаю перезапустить weblogic дабы посмотреть что пользователи и группы нормально подхватились из OVD адаптера. Стопаем всё: export ORACLE_INSTANCE=/ess/middleware/instances/bi_instance /ess/middleware/instances/bi_instance/bin/opmnctl stopall /ess/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 /ess/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh exit 0; Запускаем только weblogic. export ORACLE_INSTANCE=/ess/middleware/instances/bi_instance export LOG_DIR=/home/oracle/Scripts/Logs nohup /ess/user_projects/domains/bifou

Oracle BI Using Alternative Authentication Providers

Наконец-то разобрался как настроить долбаный oracle biee... В плане пересоздания BISystemUser добавления и удаления провайдеров.. по позже вставлю скрины. Но как ни крути на группы (соответственно права доступа как я понимаю) ему насрать...

Users and grants

Export all users with grants... set pages 9999  set lines 180  set hea off  spool create_users_to_move.sql  select 'create user '||username||' identified by '||password||  ' default tablespace '||default_tablespace||  ' temporary tablespace '||temporary_tablespace||';'  from dba_users  where username not in ('DBSNMP','OUTLN','SYS','SYSTEM')  order by username;  spool off  --end of script  set pages 9999  set lines 180  set hea off  spool grants_for_users_to_move.sql  select 'grant '||granted_role||' to '||grantee||';'  from dba_role_privs  where grantee not in ('DBSNMP','OUTLN','SYS','SYSTEM')  order by grantee;  /*  select 'grant '||privilege||' on '||owner||'.'||table_name||  ' to '||grantee||';'  from dba_tab_privs  where grantee not in ('DBSNMP','OUTL

Первое в жизни...

Добрый день! В этом блоге я буду писать всякую херню про оракле... ибо в блокноте уже не помещается...