There are 46 posts and 1


NAVIGATION

31
Jul

Skype Hidden Icons

Category: chat, Skype | Leave a Comment

Hidden Smilies (Standard)

(toivo) (mooning) (bandit) (finger)
New Hidden Smilies (für Skype 2.5)

(headbang) […]

17
Jul

apt

Category: Ubuntu, Linux | Leave a Comment

apt
apt-get update
Download package lists. Packages change several times daily, so do this often.
apt-get dist-upgrade
Update all packages.
apt-get install <package(s)>
Install/upgrade specific package(s) (and its dependencies, if missing any).
apt-get mirror-select
Choose repositories and mirrors for use with apt (fedora.us specific extension).
apt-cache search <word>
Search all known packages entries (descriptions etc) for word.
apt-cache show <package>
Show basic information about a package.
See man […]

17
Jul

Oracle Recreate missing TMP-File

Category: Oracle Administration, Oracle | Leave a Comment

CREATE TEMPORARY TABLESPACE TEMP1
TEMPFILE ‘/u1/<Pfad>/<sid>/temp11.dbf’
SIZE 100M AUTOEXTEND OFF
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K;
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp1;
DROP TABLESPACE TEMP INCLUDING CONTENTS AND DATAFILES;
CREATE TEMPORARY TABLESPACE TEMP
TEMPFILE ‘/u1/<Pfad>/<sid>/temp01.dbf’
SIZE 2048M AUTOEXTEND OFF
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K;
ALTER DATABASE DEFAULT TEMPORARY TABLESPACE TEMP;
DROP TABLESPACE TEMP1 INCLUDING CONTENTS AND DATAFILES;

12
Jul

Oracle TAF

Category: Oracle Administration, Oracle | Leave a Comment

tnsnames.ora
ORCLTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2vip)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac3vip)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)
)
)

11
Jul

SSL Zertifikate für BEA-Weblogic erstellen

Category: Weblogic, Solaris, Apache, Linux | Leave a Comment

Key der CA erstellen:
openssl genrsa -des3 -out CA.key 768
Zertificat für CA erstellen:
openssl req -new -key CA.key -x509 -days 1095 -out CA.crt
Key für Server erstellen:
openssl genrsa -out <server>.key
Zertifikatsrequest für Server erstellen:
openssl req -new -key <server>.key -out <server>.csr
Zertifikat des Servers mit dem Zeritifikat der CA signieren:
openssl x509 -req -days 365 -in <server>.csr -CA CA.crt -CAkey CA.key -CAcreateserial […]

11
Jul

Solaris V240 configure SC for SSH

Category: Solaris | Leave a Comment

1. Update auf Firmware 1.6.2
2. /usr/platform/`uname -i`/sbin/scadm set if_connection ssh
3. /usr/platform/`uname -i`/sbin/scadm resetrsc
Wait a minute, so the sc can come up again and then try ssh to connect to the sc.

11
Jul

Standby DB aktivieren

Category: Oracle Administration, Oracle | Leave a Comment

Falls noch möglich, ist die letzte Online Redo Log Datei in der bisherigen Produktionsdatenbank zu archivieren.
Dies kann mit dem Befehl:
alter system archive log current;
erfolgen.
Falls die Standbydatenbank im “Manual Recovery Mode” aktiviert ist, muss versucht werden, die noch nicht angewandten oder transferierten Archive Log Dateien auf den Standby-Rechner zu kopieren und dort in der Standbydatenbank […]

11
Jul

Standby DB erstellen

Category: Oracle Administration, Oracle | Leave a Comment

Erstellen einer Kopie der Produktionsdatenbank PROD
Beispiel:
Bestimmen der Datenbankdateien:
select name from v$datafile;
NAME
————————————-
/u01/oradata/PROD/system01.dbf
/u01/oradata/PROD/temp01.dbf
/u01/oradata/PROD/rbs01.dbf
/u01/oradata/PROD/users01.dbf
/u01/oradata/PROD/index01.dbf
/u01/oradata/PROD/tools01.dbf
/u02/oradata/PROD/users02.dbf
Datenbank stoppen:
shutdown immediate
Datenbankdateien im Betriebssystem kopieren:
cp /u01/oradata/PROD/*dbf /backup
cp /u02/oradata/PROD/*dbf /backup
Datenbank starten:
startup
Erstellen einer Steuerdatei für die Standbydatenbank STBY
alter database create standby controlfile as ‘/backup/standby_control.ctl’;
Wichtig ist, dass diese Steuerdatei nach der Kopie der Dateien der Produktionsdatenbank erstellt wurde.
Kopieren der Datenbankdateien auf den Rechner mit der Standbydatenbank
Falls auf […]

11
Jul

Oracle Pseudospalten

Category: SQL, Oracle Administration, Oracle | Leave a Comment

Beispiele:
Wie lautet der aktuelle Benutzer:
SQL> SELECT user FROM dual;
USER
——————
c0ffee
Aktuelle Uhrzeit:
SQL> SELECT sysdate FROM dual;
SYSDATE
——————-
30.07.2003 15:02:54
Ist der aktuelle Benutzer als SYSDBA angemeldet ?
SQL> SELECT userenv(’ISDBA’) as SYSDBA from dual;
SYSDBA
——
FALSE
Aktuelles Terminal von dem man arbeitet?
SQL> SELECT userenv(’TERMINAL’) as “Term” from dual;
Term
———
GOOFY
Aktuelle Einstellung der NLS-Parameter
SQL> SELECT userenv(’LANGUAGE’) as “NLS” from dual;
NLS
——————————————
GERMAN_GERMANY.WE8ISO8859P1
CLIENT_INFO Gibt 64 Byte √ºber die Usersession zur√ºck, […]

11
Jul

Regular Expressions in Oracle 10g

Category: SQL, 10g, Oracle | Leave a Comment

* regexp_like
* regexp_instr
* regexp_substr
* regexp_replace
1. Syntax:
REGEXP_LIKE(source_string, pattern [, match_parameter ] )
Match_Parameter kann die folgenden Werte annehmen:
* i Groß-, und Kleinschreibung wird nicht berücksichtigt
* c Gro√ü-, und Kleinschreibung […]

11
Jul

table shrink

Category: Oracle Administration, 10g, Oracle | Leave a Comment

Als erstes wird überprüft, wie viele Blöcke und Extents von der Tabelle allokiert sind.
Select BLOCKS, EXTENTS from USER_SEGMENTS where SEGMENT_NAME = ‘BIGEMP’;
BLOCKS EXTENTS
—— ———-
45696 116
Als weitere Ausgangswerte dienen die leeren Bl√∂cke und der durchschnittliche freie Platz innerhalb eines […]

11
Jul

fast drop user cascade

Category: Oracle Administration, Oracle | Leave a Comment

DECLARE
JOB_ID NUMBER := 1;
BEGIN
EXECUTE IMMEDIATE(’ALTER USER TEST ACCOUNT LOCK’);
DBMS_JOB.SUBMIT( JOB_ID, ‘EXECUTE IMMEDIATE ”DROP USER TEST CASCADE”;’ );
END;
/

11
Jul

Backup Partition/Daten über SSH

Category: Linux | Leave a Comment

Backup ziehen:
if=/dev/sda3 | gzip –fast -c | ssh root@10.10.10.10 “cat > /data/data4/backup/openBox_rootzip.img”
Backup einspielen:
ssh root@10.10.10.10 “gzip -d -c openBox_rootzip.img” | dd of=/dev/sda3
Backup/Entpacken von Daten über ssh mit Hilfe von Tar (on-the-fly):
tar cf - <Quelle> | ssh <user>@<server> ‘( cd </Pfad zum Ziel>; tar xf -)’
nur Fehler werden ausgegeben, kein -v bei tar verwenden, da man sonst […]

11
Jul

Rsync - Verzeichnis Backup

Category: Solaris, Linux | Leave a Comment

rsync -uvr –delete /sorce/ /target/.

11
Jul

SSL Key generieren

Category: Apache, Linux | Leave a Comment

openssl genrsa -des3 -out noc.key 1024
openssl rsa -in noc.key -out noc1.key
rm noc.key
mv noc1.key noc.key
openssl req -new -key noc.key -x509 -out noc.crt

11
Jul

find - suchen nach Inhalt

Category: Solaris, Linux | Leave a Comment

/find * | xargs grep ‘hallo’
oder deutlich eleganter:

¬†find . -type f | xargs grep ‘hallo’

11
Jul

Datum setzen

Category: Linux | Leave a Comment

date -s ‘2002-04-19 09:47:00′ + ‘%Y-%M-%d %T’

11
Jul

find - Löschen älter als 2 Tage

Category: Linux | Leave a Comment

find . -atime +2 | xargs rm

11
Jul

Mount ISO

Category: Linux | Leave a Comment

mount -t iso9660 -o loop /path/to/isoimage /cd1

11
Jul

Oracle Datapump

Category: Oracle Administration, Oracle Upgrades, 10g, Oracle | Leave a Comment

Oracle 10g Datapump for Export (expdp):
CREATE DIRECTORY export_dumps AS ‘c:\a’;
GRANT read, write ON DIRECTORY export_dumps TO gennick;

PAR-FILE:
DUMPFILE=gnis%U.dmp
DIRECTORY=export_dumps
LOGFILE=gnis_export.log
JOB_NAME=gnis_export
select * from all_directories;
DUMPFILE specifies the file to which I want to write exported data. The %U syntax gives me an incrementing counter, resulting in the filenames gnis01.dmp, gnis02.dmp, and so forth. DIRECTORY specifies my target directory.Note that if […]