ln -s /dev/raw/raw24 /data01/iqdm/data/iq_dmprj_01.iq
create dbspace dmprj using PATH '/data01/iqdm/data/iq_dmprj_01.iq' ;
create ls policy iqdm_dmprj_logical_server_policy
dqp_enabled=0
login_redirection=on
redirection_waiters_threshold=3
temp_data_in_shared_temp=off
create logical server iqdm_dmprj_logical_server membership (iqdm_s01,iqdm_s05)
policy iqdm_dmprj_logical_server_policy ;
create login policy LGP_iqdm_dmprj
max_connections=100
max_failed_login_attempts=unlimited
password_life_time=unlimited
default_logical_server=iqdm_dmprj_logical_server
create user dmprj identified by dmprj@iq234 ;
set option dmprj.default_dbspace='dmprj' ;
set option dmprj.allow_read_client_file='On' ;
set option dmprj.Index_Advisor='ON' ;
grant create on dmprj to dmprj;
grant role ROLE_WRITE to dmprj;
grnat role SELECT_CATALOG to dmprj;
---- select * from SYSROLEGRANTS where grantee_name like '%ROLE_WRITE%'
alter login policy LGP_iqdm_dmprj add logical server iqdm_dmprj_logical_server ; --- 必须要这一句。
alter user dmprj login policy LGP_iqdm_dmprj ;
commit;
create ls policy iqdm_dmprj_logical_server_policy
dqp_enabled=0
login_redirection=on
redirection_waiters_threshold=3
temp_data_in_shared_temp=off
create logical server iqdm_dmprj_logical_server membership (iqdm_s01,iqdm_s05)
policy iqdm_dmprj_logical_server_policy ;
create login policy LGP_iqdm_dmprj
max_connections=100
max_failed_login_attempts=unlimited
password_life_time=unlimited
default_logical_server=iqdm_dmprj_logical_server
create user dmprj identified by dmprj@iq234 ;
set option dmprj.default_dbspace='dmprj' ;
set option dmprj.allow_read_client_file='On' ;
set option dmprj.Index_Advisor='ON' ;
grant create on dmprj to dmprj;
grant role ROLE_WRITE to dmprj;
grnat role SELECT_CATALOG to dmprj;
---- select * from SYSROLEGRANTS where grantee_name like '%ROLE_WRITE%'
alter login policy LGP_iqdm_dmprj add logical server iqdm_dmprj_logical_server ; --- 必须要这一句。
alter user dmprj login policy LGP_iqdm_dmprj ;
commit;
本文转自ITPUB博客tolywang的博客,原文链接:SAP IQ - CREATE USER AND DBSPACE ,如需转载请自行联系原博主。