1:打开cmd
2:d:(盘符)
3:cd d:\maximo\tools\maximo
4:maxinst -imaxdemo -czh
数据导出:
set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
exp maximo/maximo@maximo owner=(maximo) file=D:\database\%date:~4,10%.dmp log=%date:~4,10%.log
数据导入:
set NLS_LANG=AMERICAN_AMERICA.AL32UTF8
imp maximo/maximo@127.0.0.1/maximo file=d:\database\maximo.dmp fromuser=(maximo) touser=(maximo)
--创建表空间
create tablespace MAXIMO datafile
'D:\oracle\product\10.2.0\oradata\MAXIMO\maximo.def' size 1G
autoextend on next 100M maxsize unlimited logging
extent management local autoallocate
segment space management auto;
--创建用户maximo
create user maximo identified by maximo;
alter user maximo default tablespace maximo quota unlimited on maximo;
--alter user maximo quota unlimited on maximo_index;
alter user maximo temporary tablespace temp;
grant create trigger to maximo;
grant create session to maximo;
grant create sequence to maximo;
grant create synonym to maximo;
grant create table to maximo;
grant create view to maximo;
grant create procedure to maximo;
grant alter session to maximo;
grant execute on ctxsys.ctx_ddl to maximo;
--To allow Maximo to give Database Access to Maximo Users in Sig. Security, run these:
grant create user to MAXIMO;
grant drop user to MAXIMO;
grant create session to MAXIMO with ADMIN OPTION;
grant alter user to MAXIMO;
grant dba to MAXIMO;
--10g
grant create job to MAXIMO;