How to make a user become as user 'SYSTEM '.
Hi all
11.2.0.3.11
AIX6
Compliance verification requires that the user of the SYSTEM be expired and locked, then a named DBA should be created instead as in create the 'mariakarpa' as a dba user.
How do I inherit/copy all the powers, privileges of the user of the SYSTEM?
Is all that I want to become like 'SYSTEM' > grant dba to mariakarpa;
Or are there special subsidies/roles required?
Thank you
MK
In general, the GRANT DBA to MARIA simply speaking, is the quick method.
You can query DBA_SYS_PRIVS and DBA_TAB_PRIVS and DBA_ROLE_PRIVS to see what roles and privileges are granted to the SYSTEM and the DBA and list which of these you need to grant to MARIA, instead of all the privileges.
For example, to get the privileges system and roles:
Select the privilege granted_privilege, granted_role null
of dba_sys_privs
where dealer = 'SYSTEM '.
or beneficiary in (select granted_role from the dba_role_privs where dealer = 'SYSTEM')
Union of all the
Select null, granted_role
of dba_role_privs
where dealer = 'SYSTEM '.
order by 1, 2
/
Hemant K Collette
Tags: Database
Similar Questions
-
Hello
I'm just doing my project which is the voting system. So my first question is how to make a user or a voter can connect once only using their username and password? After that they brought their vote, they can not be able to connect to a vote. Here, the user name, I replace it with IC and the password I can replace the ID (student ID). Here is my code for the connection:
<?php if(isset($_POST["submit"])){ $user=$_POST['IC']; $pass=$_POST['ID']; $con=mysql_connect('localhost','root','pass') or die(mysql_error()); mysql_select_db('ses') or die("Cannot select DataBase"); $query=mysql_query("SELECT * FROM voters WHERE IC='".$user."' AND ID='".$pass."'" ); $numrows=mysql_num_rows($query); if($numrows!=0) { while($row=mysql_fetch_assoc($query)) { $dbusername=$row['IC']; $dbpassword=$row['ID']; } if($user == $dbusername && $pass == $dbpassword ) { session_start(); $_SESSION['sess_user']=$user; $_SESSION['sess_pass']=$pass; /*Redirect browser*/ header("Location: main.php"); } }else{ echo "Invalid IC Number and ID Number!"; } } ?>
for the second question is how to limit a voter to vote only 15 candidates and counting of the vote that voters go? When the vote is made with 15, then the popup script appears informed that the elector make themselves with their vote.for this I use box as a method of voting and each checkbox have the id which is the primary key. I appoint the id as 'No' and set it as the primary key. Here is the code for voting:
<?php $servername = "localhost"; $username = "root"; $password = "pass"; $dbname = "ses"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT No, Calon, ID, Jurusan, Image FROM candidates"; $result = $conn->query($sql); if(isset($_POST['vote'])) { //get the ID value from the radio button form field and store in an array. $update_vote = $_POST['candidate_id']; //loop through the array and update the database foreach ($update_vote as $value) { $vote_sachin = "UPDATE candidates SET Undi=Undi+1 WHERE No=".$value.""; $run_sachin = mysqli_query($conn, $vote_sachin); } header("Location:http://localhost/VotingSystem/"); } ?> <form method="post" id="form1" action="main.php"> <?php if ($result->num_rows > 0) { echo "<table border > <tr> <th>NO</th> <th>Candidate</th> <th>INFO</th> <th>Vote</th> </tr>"; // output data of each row while($row = $result->fetch_assoc()) { echo "<tr> <td align='center'>" . $row["No"]. "</td> <td><img src=" . $row['Image'] . " width=120px height=150px></td> <td><br/>" . $row["Calon"]. " <br/>" . $row["ID"]. " <br/>" . $row["Jurusan"]. "<br/></td> <td align='center'><input type='checkbox' name='candidate_id[]' value='".$row['No']."'></td> </tr>"; } echo "<tr><td></td><td></td><td></td> <td><input type='submit' name='vote' value='VOTE'</td> </tr>"; echo "</table>"; } else { echo "0 results"; } $conn->close(); ?>
I hope someone can help me with this because I'm still trying to learn this by my own php code...
Thank you
# 1, add a Boolean column in the table (VoteSubmitted) and the value initially FALSE to follow if the user has already voted. Check this field when they connect. If the field is set to TRUE, displays a message and cannot vote again. When they get it vote, update the field from FALSE to TRUE.
# 2, I would like to do this with javascript to allow them to select all their candidates and submit once. You could start with something like this:
-
How to make a CD/USB bootable operating system?
Original title: Player/CD/USB Bootable
How to make a CD/USB bootable operating system?
If you need to download a copy and create a bootable copy, there is no built-in option in the operating system:
How to: What are my options for Windows 7 reinstall media?
Make sure you scroll down and read the section:
What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?
-
AT300-101 - How to make a backup of the operating system?
Hello
I'm pulling out my hair! I send you my tablet from toshiba AT300-101 away tomorrow to have the battery changed but realized barely booking email repair said I need to make a backup of the operating system / replacement recovery media. After fishing trawl of the web, trying to figure out how do it, I'm still stuck. can someone help me with this please. It would be a great help.
Thank you.
KateHello
There are different ways to save the date of the android device.
You can use some 3rd party backup applications (check the Google game store for available applications), or you can use the internal Android option to save the data, application, Wifi passwords and other settings to google's servers.This option can be found in Apps App-> settings-> & backup restore
-
How to make my user scripts work again
I have a user scripts that I use for my zoo game I play a they worked fine until yesterday. I get the shield who told me this page, I is not course when I mark it dangerous by firefox one do a refresh still can not get my user script
It has something to do with firefox blocks dangerous content, but the REF info says that the gray shield in the address bar that your supposed to click on to make them run does not work for me at all. He tells me I'm in jeopardy one when I update right pouf to the gray shield again. So I have to go back a look for more information. the firefox support.
-
How to make a user to type in the username and password on Windows 7?
Hello
I get a Windows 7 library,.
and thay must set so thay have to put your username and password.
When alone, Windows will display all local accounts available on the login screen. The user if it is enough to click one (instead of typing).If you want users to be able to login using the username/password names that are not specific to this specific computer, the computer must be connected to a network with an Active Directory system that manages a list of usernames and passwords. -
How to make a user to increase the default size of the disc during the action plan?
I have the problem with the field of "Ability" to the default volume, which is gray, so users cannot change its value in the request. It is plan basis of creation of VM with only one disk configured (I don't need at all, but it took to fill to record the action plan) and 'Allow the user to view and change storage reservation strategies' is checked. Users can add new volumes, but they cannot change the size of it with ID = 0. There are screenshots of request and action plan in the attachment. vRA 7.0.
Hello
Its a bug that will be fixed in 7.1.
If you are a user of the API, you can override the disk size by adding the custom property VirtualMachine.Disk0.size at the time of the request.
Unfortunately through the user interface, currently there is no way to change the size of the disks added during the creation period.
-
IOM 11 GR 2 - How to make all users of some organizations are disabled
Hi gurus,
I have a special agency, say "Organization of disabled users.
I would just as soon as I move a user inside, the user would be automatically disabled.
What is the best way to do it?
Many thanks and best regards.
Create an event handler on the user for a CHANGE event object. When the user is moved, look for the ACT_KEY or the name of the Organization in the case of the manager entries and if it is so that org, use the APIs to disable them.
-Kevin
-
How to make a user-defined structure and creat a pointer for the same thing
Function
The prototype of the dll function is
long unsigned PassThruIoctl (unsigned long A, long B unsigned, void * pvar1, void * pvar2);
' void * pvar1 ' and ' Sub * pvar2 ' are pointers to different Structures. The value of "unsigned" long B will determine what kind of Structure is the pointer.
An example of structure is given below, when pvar1 is the pointer to SCONFIG_LIST.
typedef struct
{
ParameterID long unsigned; This entry of the dll
Value of long type is unsigned; This is a release of dll
} SCONFIG;
typedef struct
{
unsigned long NumOfParams; the no. of elements in the array (SCONFIG)
(entry)
SCONFIG * ConfigPtr; the pointer to array of SCONFIG
(entry)
} SCONFIG_LIST;
The function is supposed to get the values of the configuration parameters (leave a device external interfacing).
When I tried to run the service as shown in the attached VI, I always find myself with the error. The error I get is says something about the DLL which damages the memory of Lab View.
Fixed mising. Can you post it again?
-
How to make a text becomes more visible?
Maybe I didn't use google much, but I can't find anything in the internet this might solve my question.
Basically, I want to work with a white background, where a text is that becomes more visible on more it approximates rained from the lower part. The tricky thing is, it's for a Web site, then it must be responsive to smartphones or tablets for example (first idea: put the white at the front bottom layer as it makes the text more visible/invisible?). Any ideas how to fix? It would be good to know.
I don't know what that means "be sensitive to smartphones or tablets. People put the complex graphics on these things all the time. They have unprecedented power.
Photoshop can help you to do what you describe. What you want is not more complex than to put a gradient in a layer mask to create partial transparency. You could have the text of discoloration (in the form of a chart) or a solid color fill of discoloration that overlap text rendered by a browser.
Just a few graphic ideas...
Save as a PNG-24 format to get partial transparency which can make a browser.
-Christmas
-
How to make a miniature become fullsized?
I'm doing a portfolio site. I have a buch of thumbnails of my work and I want to be able to click on the image and use the version of fullsized pop up in the middle of the screen.
any help is appreciated.
Make your choice:
Thickbox
lightbox
Lytebox
Shadowbox
-
How to make normal mouse become again on another scene
Hi guys, so I have this piece of code:
import flash.events.MouseEvent;
import flash.events.Event;
Stop();
addEventListener (Event.ENTER_FRAME, GetMouse);
function GetMouse(event:Event)
{
If (mouseX > 365 & & mouseX < 613 & & mouseY < 170 & & mouseY > 120)
{
Mouse.Cursor = "Button";
addEventListener (MouseEvent.MOUSE_DOWN, goToLevel);
function goToLevel(event:MouseEvent):void
{
Stop (1, "Lv1");
}
}
ElseIf (mouseX > 365 & & mouseX < 613 & & mouseY < 234 & & mouseY > 185)
{
Mouse.Cursor = "Button";
addEventListener (MouseEvent.MOUSE_DOWN, goToLevelSelect);
function goToLevelSelect(event:MouseEvent):void
{
Stop (2, "LvSelect");
}
}
on the other
{
Mouse.Cursor = "auto";
}
}
And basically, it's my first scene have 2 clickable buttons that lead me to a 2nd and 3rd stage. The problem is, once I'm onstage, 2 or 3, the cursor remains as if it were a button when I put it on the box I defined in other places, I thought that the code would affect not my other scenes that's why I did it. Is it possible that I can do my cursor back to normal in the other scenes?
you have no problem in scene 2 after the code runs, and you apply any other code Mouse.cursor?
-
How to create an iso of my operating system windows 7?
How to make a iso of my operating system, including my drivers, updates, files, settings and installed programs?
I have windows 7 Home premium.
(Sorry if its in the section wromg)
Thank you!!
Typically, you create a System Image, perhaps using the built-in windows backup utility.
And if victory was supplied preinstalled by the manufacturer of your PC you have also created recovery disks, according to this instructions of PC manufacturers?
-
How to make a text field required at run time when the user clicks on the box?
I had a form, there are several checkboxes fields and the text associated with the check boxes. If the use clicks on the checkbox then partner
text fields should become mandatory. I tried the change event and the click event of the boxes. There is error in the onChnage event and I got some odd results in the click event on. Sometimes, if the user clicks the check box, then for the 1st time the field is not required, then the user onclicks the box and when the user clicks the check box for the second time the field becomes necessary, but if I turns off the option highlight the field and selects the field becomes necessary even if the user onchecks I am totally confused! To add that I have also written an incorrect code always I reached the goal? How it can be possible. I write the codes below, please help me because I am working under a deadline from the client.
onChange event:
var = this.boundItem (xfa.event.newText) newVal;
if(newVal == 0)
{
xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = "disabled";
}
on the other
{
xfa.resolveNode ("form1. Subform0.Subform1.Subform9.Subform10.Table48.Row4.Purchasecost3_1'). validate.nullTest = 'error ';
}*/For the onClick event:
var a = xfa.resolveNode ("form1..") RawValue Subform0.Subform1.Subform9.Subform10.Table48.row2.CostItemRecovere d_OnlyEnergyCharges");
App.Alert (a);
if(a == 0)
{
xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = 'error ';
}
if(a == 1)
{
xfa.resolveNode("form1.Subform0.Subform1.Subform9.Subform10.Table48.Row4.ComplianceCheck__L1_1").validate.nullTest = "disabled";
}Please help someone!
Hello
You may need this resolved at this point, but here are a few tips.
An example of a loop in a dynamic array is here: Re: how to make invisible/visible or hidden columns with checkbox?
You are usually not necessary to resolve the nodes, especially when the script object is in the same table as the target objects.
For example if the table was not static your script could be simplified:
if (this.rawValue == "1") // this object is in Row2 { Row4.ComplianceCheck_L1_1.mandatory= "error"; ... }
However because you will be to loop through all the rows in the table repeatable instances / then you need to resolve the nodes. Take a look at the example above.
In your script, you have to Row8 Row4. I don't know if this is repeatable or just some of them. If we take Row4 as being repetitive, then you can apply the following to all repeatable lines.
var vRow4 = Table48._Row4.count; console.println("Row4: " + vRow4); // You can delete this or comment it out after testing
if (this.rawValue == "1") // this object is in Row2 { for (var i=0; i
I have not tested, but it should be close to work.
Good luck
Niall
-
How can I make visible user library folder in my user/home folder
How can MacBook Pro, OS X El Capitan (10.11.2), I make visible user library folder in my user/home folder
Open the folder in the Finder, choose Display Options in the view menu and check the box to show.
(137547)
Maybe you are looking for
-
Satellite C55-B901 - webcam turns off automatically
Guys, have a camera problem... When I video chat or just use the cam, it gets a detected or turned off automatically. Sleep immediately and charge function is displayed at the top right... Anyone can sort by my problems... Thnks in advnc, Raga
-
that I play world of warcraft and I start to mumble vista mutes the game how can I stop at vista muteing the game?
-
wall mounting a Pavilion 21 or 23 touchscreen pc
I was on the phone with hp for more than two hours. I can't know if touchscreen all-in-one desktop in Pavilion 20 or 23 new hp can be mounted to the wall. The hp online Assembly instructions do not show the same pc in return that the computers I
-
Error 80070002-Windows cannot find the updates or update iTunes
For a month I tried to update iTunes and Windows Update. For both I get 80070002 error. I did everything what I found on the web, and that microsoft has suggested. I stopped Windows Update and deleted files data store and downloads. I made a new fold
-
WRT54GS - problem with changing the router IP
Here's my problem: I want to change the IP Address of the router (and subnet) to 192.168.1.1 to (for example) 192.168.28.1 (long story). I can do it on the base of the router configuration page. I have a desktop with a fixed address configuration: 1