When you use vi or vim to edit folder encryption, you should use wq or: x to exit when saving the disk, but sometimes you may accidentally Press: X. In this case, the system will prompt: enterencryptionkey: If you have not carefully read the prompt, for example, continue to input: x, Enterencryption...
When you use vi or vim to edit folder encryption, you should use wq or: x to exit when saving the disk, but sometimes you may accidentally Press: X,
At this time, the system will prompt:
Enter encryption key:
If you have not carefully read the prompt, for example, continue to input: x,
Enter encryption key :*
Enter same key again :*
In fact, this file is encrypted and you will be asked to enter the key next time you open it. for example:
[Oracle @ ts01 admin] $ vim $ ORACLE_HOME/sqlplus/admin/glogin. SQL
Enter encryption key :*
--
-- Copyright (c) Oracle Corporation 1988,200 0. All Rights Reserved.
--
-- NAME
-- Glogin. SQL
--
-- DESCRIPTION
-- SQL * Plus global login startup file.
--
-- Add any sqlplus commands here that are to be executed when a user
-- Starts SQL * Plus on your system
--
-- USAGE
-- This script is automatically run when SQL * Plus starts
--
-- For backward compatibility
Set pagesize 14
Set sqlpluscompatibility 8.1.7
-- Used by Trusted Oracle
Column rowlabel format A15
-- Used for the show errors command
Column line/col format A8
Column error format A65 WORD_WRAPPED
-- Used for the show sga command
COLUMN name_col_plus_show_sga FORMAT a24
-- Defaults for SHOW PARAMETERS
COLUMN name_col_plus_show_param FORMAT a36 HEADING NAME
COLUMN value_col_plus_show_param FORMAT a30 HEADING VALUE
-- Defaults for set autotrace explain report
COLUMN id_plus_exp FORMAT 990 HEADING I
COLUMN parent_id_plus_exp FORMAT 990 HEADING p
COLUMN plan_plus_exp FORMAT a60
COLUMN object_node_plus_exp FORMAT a8
COLUMN other_tag_plus_exp FORMAT a29
COLUMN other_plus_exp FORMAT a44
Set linesize 132
Set serveroutput on size 1000000
Set timing on
-- Set trimspool on
Sets long 5000
Set linesize 132
Set pagesize 9999
Column plan_plus_exp format a80
Column global_name new_value gname
Set termout off
Define gname = idle
Column global_name new_value gname
Define gname = idle
Column global_name new_value gname
Select lower (user) | '@' | substr (global_name, 1,
Decode (dot, 0, length (global_name), dot-1) global_name
From (select global_name, instr (global_name, '.') dot from global_name );
Set sqlprompt '& gname>'
Set termout on
[Oracle @ ts01 admin] $
Otherwise, garbled characters are displayed.
To access the password, follow these steps:
Vim file
Enter encryption key: Enter the password
: Set key =
: W!
For example:
[Oracle @ ts01 admin] $ vim $ ORACLE_HOME/sqlplus/admin/glogin. SQL
Enter encryption key: * Enter the password
........ Original pdf file text
: Set key =
: W! Disk Storage
Now the password restriction is removed.
Author: wanbaokeng