1. Установить, если не установлена JRE.
2. Выполнить:
[root@server1~]# cd /usr/lib/mozilla/plugins
[root@server1~]# ln -s /usr/java/jre1.6.0_24/plugin/i386/ns7/libjavaplugin_oji.so .
3. Готово.
[root@server1~]# cd /usr/lib/mozilla/plugins
[root@server1~]# ln -s /usr/java/jre1.6.0_24/plugin/i386/ns7/libjavaplugin_oji.so .
3. Готово.
LoadModule weblogic_module modules/mod_wl_22.so
4.2.2. Добавить в конец файла: <IfModule mod_wl_22.c>
WebLogicCluster wlsvm1:7002,wlsvm2:7002,wlsvm3:7003
</IfModule>
<Location />
SetHandler weblogic-handler
WebLogicCluster wlsvm1:7002,wlsvm2:7002,wlsvm3:7003
</Location>
4.3. Перезапустить Apache HTTP Server. CONSULTING_ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = consulting.mydomain.com)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)
2. Запустить установку (Setup.exe) $ sqlplus userName/userPass@serverHost:serverPort/serviceName
Просмотр информации о свободном пространстве в табличных пространствах:
SELECT /* + RULE */ df.tablespace_name "Tablespace",
df.bytes / (1024 * 1024) "Size (MB)",
SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
FROM dba_free_space fs,
(SELECT tablespace_name,SUM(bytes) bytes
FROM dba_data_files
GROUP BY tablespace_name) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,df.bytes
UNION ALL
SELECT /* + RULE */ df.tablespace_name "Tablespace",
fs.bytes / (1024 * 1024) "Size (MB)",
SUM(df.bytes_free) / (1024 * 1024) "Free (MB)",
Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1) "% Free",
Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes) "% Used"
FROM dba_temp_files fs,
(SELECT tablespace_name,bytes_free,bytes_used
FROM v$temp_space_header
GROUP BY tablespace_name,bytes_free,bytes_used) df
WHERE fs.tablespace_name (+) = df.tablespace_name
GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
ORDER BY 4 DESC;
'Завершить' все неактивные сессии: begin
-- ALTER SYSTEM ENABLE RESTRICTED SESSION;
for x in (
select Sid, Serial#, machine, program
from v$session
where status='INACTIVE'
) loop
execute immediate 'Alter System Kill Session '''|| x.Sid
|| ',' || x.Serial# || ''' IMMEDIATE';
end loop;
end;
Сделать бессрочным срок действия пароля пользователя:
ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
Увеличить размер табличного пространства:
ALTER DATABASE DATAFILE '/u02/oracle/rbdb1/stuff01.dbf' RESIZE 100M;
Поиск дубликатов в таблице:
SELECT column_name, COUNT(column_name)
FROM table_name
GROUP BY column_name
HAVING COUNT (column_name) > 1
Создание DBLink с использованием Easy connnect:
CREATE PUBLIC DATABASE LINK dbLinkName
CONNECT TO userName identified by userPassword
USING '(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = portNumber))
(CONNECT_DATA =
(SERVICE_NAME = serviceName)))';
$ cd /etc/yum.repos.d
$ mv Oracle-Base.repo Oracle-Base.repo.disabled
$ wget http://public-yum.oracle.com/public-yum-el4.repo
$ wget http://public-yum.oracle.com/public-yum-el5.repo
$ wget http://public-yum.oracle.com/public-yum-ol6.repo
$ wget http://public-yum.oracle.com/public-yum-ol7.repo
$ /etc/init.d/yum-updatesd restart