Archive for April, 2008

Deleting docbases, D5.3 D6(Maybe) Schema cleana.

After running the uninstaller clean up the schema. Useful in cases of migration when sysadmin’s password can’t be legally extracted from the Oracle dba and you need to crack on.

set heading off
set feedback off
spool dropobj_x.sql
select ‘drop ‘||object_type||’ ‘||object_name||’ ;’
from user_objects
where object_type <> ‘INDEX’
and object_type <> ‘DATABASE LINK’
and object_type <> ‘PACKAGE BODY’
and object_type <> ‘TRIGGER’
and object_type <> ‘LOB’
order by created;
spool off
set heading on
set feedback on

Leave a Comment

Default schema for Content Server repository

If you have to have your schema created for you by the hosting company then this is what is required.
Make sure to ask the developers if any triggers will be required as you may wish to add this at the same time.

Schema Parameters        (Tried, tested and in use)
GRANT ALTER SESSION TO xy_resource;
GRANT CREATE DATABASE LINK TO xy_resource;
GRANT CREATE INDEXTYPE TO xy_resource;
GRANT CREATE OPERATOR TO xy_resource;
GRANT CREATE PROCEDURE TO xy_resource;
GRANT CREATE PUBLIC SYNONYM TO xy_resource;
GRANT CREATE ROLE TO xy_resource;
GRANT CREATE SEQUENCE TO xy_resource;
GRANT CREATE SESSION TO xy_resource;
GRANT CREATE SYNONYM TO xy_resource;
GRANT CREATE TABLE TO xy_resource;
GRANT CREATE TYPE TO xy_resource;
GRANT CREATE VIEW TO xy_resource;
GRANT SELECT_CATALOG_ROLE TO xy_resource;

Comments (1)

dm_check_password – unix command line syntax example

To check dm_check_password on unix (thanks Dave R)

$ dm_check_password -p <nnn.nnn.nnn.nnn> -b <nnn.nnn.nnn.nnn> -d <DOMAIN>
“copyright info”
Enter user name: <windowsuser>
Enter user password:
Enter user extra #1 (not used):
“additional info”
Enter user extra #2 (not used):

dm_check_password: Result = (0) = (DM_EXT_APP_SUCCESS)

Leave a Comment

Find (not) by user and group

More find stuff (thanks for the tips JC)
find /mydir ! -user dmadmin ! -group dmgroup
find /mydir -type f ! -user dmadmin ! -group dmgroup

Leave a Comment

compile gtk under cygwin

use this syntax

gcc test2.c -o base2 `pkg-config –cflags –libs gtk+-2.0`

Leave a Comment

Change root password on Leopard

Root password not set by default for root user.
Login an as normal user which should be a sudo user:

my-macbook:~ mymacbook $ sudo su
Password:
sh-3.2# passwd root
Changing password for root.
New password:
Retype new password:
sh-3.2#

Commit password to memory!

Leave a Comment

API update repeating attribute

fetch,c,<oid>
set,c,l,method_arguments[4]
-master_broker <fqdn of docbroker>
set,c,l,method_arguments[8]
-replica_broker <fqdn of docbroker>
save,c,l
Not the short name or some of the tabs in DA wont work when looking at federation configs even if config in same domain. I think this is only when using dns servers.

Leave a Comment