您的位置:主页 > 成功案例 > 斯伦贝谢软件使用技巧 > GeoFrame操作技巧 >

成功案例

GeoFrame操作技巧>>

69.数据库密码过期导致GF2012无法登录问题

在使用GF2012+ORA11G一段时间后会出现ORA无法连接问题,原因是由于Oracle 11G的新特性所致,Oracle 11G创建用户时缺省密码过期限制是180天,如果超过180天用户密码未做修改则该用户无法登录。

可通进入Oracle管理界面,使用下面的命令查看密码有效期:

SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND

resource_name='PASSWORD_LIFE_TIME'

对于在密码将要过期或已经过期时可通过“ALTER USER 用户名 IDENTIFIED BY 密码;”语句进行修改密码,密码修改后该用户可正常连接数据库。

也可以在装完ORACLE数据库软件后使用以下命令设置密码永不过期来解决此问题:

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;

此时就将口令有效期默认值180天修改成“无限制”;

因此,建议对于新装的GF2012+ORA11G,请别忘记执行

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;



对于已经出现问题密码过期的账户可以通过以下方法批量将用户解锁:

将set_profile.sql拷贝到服务器安装geoframe软件的安装用户加目录下并将其权限放开

chmod 777 set_profile.sql

通过安装用户登录到服务器上

./GeoFrame_2012_lnx.csh xterm打开geoframe蓝窗口

进入到含有set_profile.sql文件的目录下

sqlplus system/pasword

SQL> @set_profile.sql

alter profile gf_catalog limit PASSWORD_LIFE_TIME unlimited;

alter profile gf_catalog limit FAILED_LOGIN_ATTEMPTS unlimited;

alter profile gf_project limit PASSWORD_LIFE_TIME unlimited;

alter profile gf_project limit FAILED_LOGIN_ATTEMPTS unlimited;

commit;

alter user gf_dba profile gf_catalog;

alter user gf_sys profile gf_catalog;

alter user gf_public profile gf_catalog;

alter user gm_system profile gf_catalog;

alter user gmg_catalog profile gf_catalog;

alter user gmg_global profile gf_catalog;

alter user gmg_cultural profile gf_catalog;

commit;

alter user gf_dba identified by xxxxxxx;

alter user gf_sys identified by xxxxxxx;

alter user gf_public identified by xxxxxxx;

alter user gm_system identified by xxxxxxx;

alter user gmg_catalog identified by xxxxxxx;

alter user gmg_global identified by xxxxxxx;

alter user gmg_cultural identified by xxxxxxx;

prompt

alter user CLOUDSPIN profile gf_project;

alter user CLSP profile gf_project;

alter user GEOLOGY_OFFICE profile gf_project;

alter user TEST profile gf_project;

alter user TOTAL profile gf_project;

alter user TRAIN profile gf_project;

alter user GEOFRAME profile gf_catalog;

commit;

Result in set_all_gf_accounts_profile.sql

Now run the following to update the GeoFrame accounts:

@ set_all_gf_accounts_profile.sql

SQL> @set_all_gf_accounts_profile.sql

Profile altered

Profile altered.

Profile altered.

Profile altered.

Commit complete.

SQL>exit



此时所有GF相关帐户就都改了。

注1:请通过下面命令登录Oracle管理界面

sqlplus /nolog

conn /as sysdba

注2:set_profile.sql可以联系斯伦贝谢SIS部门技术支持获取

地址:北京市朝阳区酒仙桥路20号颐堤港一座4层

邮编:100015 传真:010-64309502

Copyright © 2002-2024 斯伦贝谢科技服务(北京)有限公司  京ICP备 06043577 号-1