Adding Users to a Password File (46)

When you grant SYSDBA or SYSOPER privileges to a user, that user's name and
privilege information are added to the password file. If the server does not have an
EXCLUSIVE password file (that is, if the initialization parameter
REMOTE_LOGIN_PASSWORDFILE is NONE or SHARED, or the password file is missing),
Oracle Database issues an error if you attempt to grant these privileges.

A user's name remains in the password file only as long as that user has at least one of
these two privileges. If you revoke both of these privileges, Oracle Database removes
the user from the password file.

添加用户至密码文件
1. 如果REMOTE_LOGIN_PASSWORDFILE参数不为空 , 不能赋予sysdba权限给用户
2. 只要拥有sysdba后者sysoper权限 , 用户明将保留在密码文件中

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-995389/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-995389/

Parameters allow you to prompt users for one or more inputs that will be passed into a build. For example, you might have a project that runs tests on demand by allowing users to upload a zip file with binaries to be tested. This could be done by adding a File Parameter here. Or you might have a project that releases some software, and you want users to enter release notes that will be uploaded along with the software. This could be done by adding a Multi-line String Parameter here. Each parameter has a Name and some sort of Value , depending on the parameter type. These name-value pairs will be exported as environment variables when the build starts, allowing subsequent parts of the build configuration (such as build steps) to access those values, e.g. by using the ${PARAMETER_NAME} syntax (or %PARAMETER_NAME% on Windows). This also implies that each parameter defined here should have a unique Name . When a project is parameterized, the usual Build Now link will be replaced with a Build with Parameters link, where users will be prompted to specify values for each of the defined parameters. If they choose not to enter anything, the build will start with the default value for each parameter. If a build is started automatically, for example if started by an SCM trigger, the default values for each parameter will be used. When a parameterized build is in the queue, attempting to start another build of the same project will only succeed if the parameter values are different, or if the Execute concurrent builds if necessary option is enabled. See the Parameterized Builds documentation for more information about this feature.
12-13
In this task, you will design and implement a user-driven vocabulary management system that supports interaction from different types of users (e.g., readers and admins). This task simulates a real-world collaborative environment, where access control and data integrity are critical. 🧩 Task Objective You are required to implement the following two classes: Role: defines the role of a user, including their name, access level, and identity information. RoleBasedVocabSys: manages user login, menu display, command execution, and interaction with the TextProcessor object. The program should simulate a terminal-like experience for different types of users, controlling what they can see and what actions they can perform. 👥 User Roles The system supports two user roles: Reader: Can log in and view the vocabulary. Can view the top 10 and bottom 10 most frequent words. Cannot update or modify any part of the vocabulary. check the examples below for reference. Admin: Has all the permissions of the reader. Can update the vocabulary by adding new files or removing existing ones. Has full access to the vocabulary update methods from TextProcessor. User credentials and access roles are provided as the varaiable users_info from the util.py module. in scaffold. 📋 Task Requirements You must: Implement the Role class, which should: Store and return the user’s username, display name, and access level (e.g., "reader", "admin"). Provide getter methods: get_user_name(), get_access(), get_name(). Implement the RoleBasedVocabSys class, which should: Handle login and logout. Display different menus depending on whether a user is logged in and their access level. Call TextProcessor functions (from Task 7) to manage the vocabulary. Enforce role-based access control (e.g., only admins can update vocabularies). Use the provided attributes and method names in the scaffold. Do not rename or remove any predefined code blocks. Implement menu-based navigation where users can choose options via standard input: Exit the system. Login or Logout. View the top 10 or bottom 10 frequent words. Update vocabulary by adding/removing files (admin only). You may write additional helper functions or methods as needed. 🧠 Additional Notes The vocabulary is loaded and managed via the TextProcessor object created in the constructor. The files to be added/removed are fixed as data/for_admin/excluded.csv data/add.csv and data/delete.csv for this exercise, but you may generalize it in future tasks. All user input should be validated using verify_user_choice. The system should loop until the user chooses to exit. Examples Example 1a: interface when starting the program Welcome to the Mark system v0.0! Please Login: 1.Exit 2.Login Enter your choice: Example 1b: unlimited attemps for invalid users inputs Welcome to the Mark system v0.0! Please Login: 1.Exit 2.Login Enter your choice: ewfwef Enter your choice: edf Enter your choice: 3 Enter your choice: 4 ... Enter your choice: Example 2a: correct login credential for reader Welcome to the Mark system v0.0! Please Login: 1.Exit 2.Login Please key your account name: Jueqing Please key your password: jueqing123 Welcome Jueqing Lu Please choose one option below: 1.Exit 2.Logout/Re-Login 3.Show top 10 frequency vocabularies 4.Show last 10 frequency vocabularies Enter your choice: Example 2b: correct login credential for admin Welcome to the Mark system v0.0! Please Login: 1.Exit 2.Login Please key your account name: Trang Please key your password: trang123 Welcome Trang Vu Please choose one option below: 1.Exit 2.Logout/Re-Login 3.Show top 10 frequency vocabularies 4.Show last 10 frequency vocabularies 5.Updating Vobulary for adding 6.Updating Vobulary for excluding Enter your choice:
09-24
Beginning configuration step: Writing configuration file Saving my.ini configuration file... Saved my.ini configuration file. Ended configuration step: Writing configuration file Beginning configuration step: Updating Windows Firewall rules Adding a Windows Firewall rule for MySQL57 on port 3306. Attempting to add a Windows Firewall rule with command: netsh.exe advfirewall firewall add rule name="Port 3306" protocol=TCP localport=3306 dir=in action=allow 纭畾銆? Successfully added the Windows Firewall rule. Ended configuration step: Updating Windows Firewall rules Beginning configuration step: Adjusting Windows service Attempting to grant the required filesystem permissions to the 'NT AUTHORITY\NetworkService' account. Granted permissions to the data directory. Adding new service New service added Ended configuration step: Adjusting Windows service Beginning configuration step: Initializing database (may take a long time) Deleting the data directory from a previous (failed) configuration... Attempting to run MySQL Server with --initialize-insecure option... Starting process for MySQL Server 5.7.44... Starting process with command: F:\mysql\m\bin\mysqld.exe --defaults-file="F:\mysql\y\my.ini" --console --initialize-insecure=on --lower-case-table-names=1... TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). InnoDB: New log files created, LSN=45790 InnoDB: Creating foreign key constraint system tables. mysqld: File '.\姹熷鐪?slow.log' not found (Errcode: 2 - No such file or directory) Could not use 姹熷鐪?slow.log for logging (error 2 - No such file or directory). Turning logging off for the server process. To turn it on again: fix the cause, then either restart the query logging by using "SET GLOBAL SLOW_QUERY_LOG=ON" or restart the MySQL server. No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 42751b4d-8dec-11f0-b5f1-025034608cb2. Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher. A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher. CA certificate ca.pem is self signed. root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option. Process for mysqld, with ID 19428, was run successfully and exited with code 0. Successfully started process for MySQL Server 5.7.44. MySQL Server 5.7.44 intialized the database successfully. Ended configuration step: Initializing database (may take a long time) Beginning configuration step: Updating permissions for the data folder and related server files Attempting to update the permissions for the data folder and related server files... Inherited permissions have been converted to explicit permissions. Full control permissions granted to: NETWORK SERVICE. Full control permissions granted to: Administrators. Full control permissions granted to: CREATOR OWNER. Full control permissions granted to: SYSTEM. Access to the data directory is removed for the users group. Permissions for the data folder and related server files are updated correctly. Ended configuration step: Updating permissions for the data folder and related server files Beginning configuration step: Starting the server Attempting to start service MySQL57.................... 只有在任务处于完成状态(RanToCompletion、Faulted 或 Canceled)时才能释放它。 Ended configuration step: Starting the server . Found existing data directory, no need to initialize the database. Found existing data directory, no need to initialize the database.帮我解决
09-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值