Posts

Monitoring tool with graphs

Image

Oracle to Postgres

Image
  Round 1: Created metadata for tables, sequences, packages Round 2: Created indexes Round 3: freeze column name to freezes to_date function updated GEOMETRY datatype , installed POSTGIS package to support this datatype Round 4: created triggers created Functions Migration: bash-4.2$ pwd /usr/edb/migrationtoolkit/etc bash-4.2$ cat toolkit.properties SRC_DB_URL=jdbc:oracle:thin:@localhost:1521:orcl SRC_DB_USER=hr SRC_DB_PASSWORD=hr TARGET_DB_URL=jdbc:edb://postoffline:5444/dev TARGET_DB_USER=enterprisedb TARGET_DB_PASSWORD=password bash-4.2$  -bash-4.2$ pwd /usr/edb/migrationtoolkit/bin -bash-4.2$ ls -lrt total 724 -rwxr-xr-x. 1 root root   2439 Dec 11 13:29 runJavaApplication.sh -rwxr-xr-x. 1 root root    544 Dec 11 13:33 runMTK.sh -rwxr-xr-x. 1 root root 729258 Dec 11 13:33 edb-migrationtoolkit.jar -bash-4.2$  ./runMTK.sh HR OUTPUT: Running EnterpriseDB Migration Toolkit (Build 55.7.0) ... Source database connectivity info... conn =jdbc:oracle:thin:@o...

Postgres Master Slave setup

  bash-4.2$ pwd /database/edb/as14 bash-4.2$ cat postgresql.conf | grep 'max_wal_senders\|max_replication_slots\|wal_level\|hot_standby\|archive_mode\|archive_command\|shared_preload_libraries' wal_level = replica # minimal, replica, or logical archive_mode = on # enables archiving; off, on, or always archive_command = '/bin/true' #archive_command = 'test ! -f barman@postonline:/var/lib/barman/dev-pgsql/incoming/%f && rsync -a %p barman@postonline:/var/lib/barman/dev-pgsql/incoming/%f' # command to use to archive a logfile segment max_wal_senders = 10 # max number of walsender processes max_replication_slots = 10 # max number of replication slots hot_standby = on # "off" disallows queries during recovery #hot_standby_feedback = off # send info from standby to prevent shared_preload_libraries = '$libdir/dbms_pipe,$libdir/edb_gen,$libdir/dbms_aq,repmgr' bash-4.2$  bash-4.2$ /usr/edb/as14/bin/psql -d postgres -U enter...

Crontab UI

Image
  [root@postonline bin]# node -v v16.20.2 [root@postonline bin]# npm -v 8.19.4 [root@postonline ~]# curl -s https://raw.githubusercontent.com/jhuckaby/Cronicle/master/bin/install.js | node Cronicle Installer v1.5 Copyright (c) 2015 - 2022 PixlCore.com. MIT Licensed. Log File: /opt/cronicle/logs/install.log Fetching release list... Installing Cronicle v0.9.44... Installing dependencies... Running post-install script... Welcome to Cronicle! First time installing?  You should configure your settings in '/opt/cronicle/conf/config.json'. Next, if this is a master server, type: '/opt/cronicle/bin/control.sh setup' to init storage. Then, to start the service, type: '/opt/cronicle/bin/control.sh start'. For full docs, please visit: http://github.com/jhuckaby/Cronicle Enjoy! Installation complete. [root@postonline ~]#  [root@postonline ~]# /opt/cronicle/bin/control.sh setup Setup completed successfully! This server (postonline) has been added as the single primary master...

Barman restoration

  mkdir -p /database/edb/clone/as14 chown -R enterprisedb:enterprisedb /database export PGDATA=/database/edb/clone/as14 export PGHOME=/usr/edb/as14 initdb -E UTF-8 — lc-collate='C' — lc-ctype='C' -D $PGDATA /usr/edb/as14/bin/pg_ctl -D /database/edb/clone/as14 -l logfile status barman list-backup dev-pgsql barman recover --remote-ssh-command 'ssh enterprisedb@pg' \         pg latest \         /database/edb/clone/as14 or barman recover dev-pgsql 20210224T150826 /backup/restored_db/pg12test_data/ OUTPUT: -bash-4.2$ id uid=986(enterprisedb) gid=980(enterprisedb) groups=980(enterprisedb) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 -bash-4.2$ export PGDATA=/database/edb/clone/as14 -bash-4.2$ export PGHOME=/usr/edb/as14 -bash-4.2$ initdb -E UTF-8 — lc-collate='C' — lc-ctype='C' -D $PGDATA initdb: too many command-line arguments (first is "—") Try "initdb --help" for more information. -bash-4.2$ initdb -E UTF-8 --lc-...

Popular Posts

AWR Report Analysis

Goldengate 19c Installation with issue resolution

OEM queries

Oracle 11g Physical Standy Setup

Oracle 12c 2-node RAC setup in VMware Player 15 -- Part01

Oracle to Postgres

Execution_Explain Plan

Active Session History Analysis

General Queries

Fragmentation & Re-organisation