الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

انشاء مستخدم جديد بنفس صلاحيات مستخدم حالى للداتابيز

Featured Replies

بتاريخ:

set pages 0 feed off veri off lines 500

accept oldname prompt "ادخل اسم المستخدم الحالى "
accept newname prompt "ادخل اسم المستخدم الجديد"
--accept psw     prompt "Enter new user's password: "

-- Create user...
select 'create user &&newname identified by values '''||password||''''||
-- select 'create user &&newname identified by &psw'||
      ' default tablespace '||default_tablespace||
      ' temporary tablespace '||temporary_tablespace||' profile '||
      profile||';'
from sys.dba_users where username = upper('&&oldname');

-- Grant Roles...
select 'grant '||granted_role||' to &&newname'||
      decode(ADMIN_OPTION, 'YES', ' WITH ADMIN OPTION')||';'
from sys.dba_role_privs where grantee = upper('&&oldname');  

-- Grant System Privs...
select 'grant '||privilege||' to &&newname'||
      decode(ADMIN_OPTION, 'YES', ' WITH ADMIN OPTION')||';'
from sys.dba_sys_privs where grantee = upper('&&oldname');  

-- Grant Table Privs...
select 'grant '||privilege||' on '||owner||'.'||table_name||' to &&newname;'
from sys.dba_tab_privs where grantee = upper('&&oldname');  

-- Grant Column Privs...
select 'grant '||privilege||' on '||owner||'.'||table_name||
      '('||column_name||') to &&newname;'
from sys.dba_col_privs where grantee = upper('&&oldname');  

-- Tablespace Quotas...
select 'alter user '||username||' quota '||decode(max_bytes, -1, 'UNLIMITED', max_bytes)||' on '||tablespace_name||';'
from sys.dba_ts_quotas where username = upper('&&oldname'); 

-- Set Default Role...
set serveroutput on declare
 defroles varchar2(4000);
begin for c1 in (select * from sys.dba_role_privs where grantee = upper('&&oldname') and default_role = 'YES'
 ) loop
     if length(defroles) > 0 then
        defroles := defroles||','||c1.granted_role;
     else
        defroles := defroles||c1.granted_role;
     end if;
 end loop;
 dbms_output.put_line('alter user &&newname default role '||defroles||';');
end;
/

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.