<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: help needed for user  creation in database in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348459#M869928</link>
    <description>You could use a program and read a record out of one, read a record out of the other, and create the script to create the user.&lt;BR /&gt;&lt;BR /&gt;What I'd do is create a table with a number key, username and password fields.  I'd load the username with a counter into the table.  Then I'd update the records with the password using a counter.  Then it would be a simple script like in your last post&lt;BR /&gt;&lt;BR /&gt;spool creator.sql&lt;BR /&gt;select 'create user '||username_v||' identified by '||password_field||' default tablespace siebeldata temporary tablespace temp;',&lt;BR /&gt;'grant role_1, connect to '|| name&lt;BR /&gt;from my_name_table;&lt;BR /&gt;spool off&lt;BR /&gt;@@creator.sql&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 03 Aug 2004 14:53:13 GMT</pubDate>
    <dc:creator>John Wimmer_1</dc:creator>
    <dc:date>2004-08-03T14:53:13Z</dc:date>
    <item>
      <title>help needed for user  creation in database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348458#M869927</link>
      <description>I need create 1500 users in Oracle database on UNIX&lt;BR /&gt;I have two files the first is the usernames and the second is the passwords. my users have a diferent password &lt;BR /&gt;&lt;BR /&gt;any idea about generate the script&lt;BR /&gt;&lt;BR /&gt;Thanks for all the responses&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2004 13:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348458#M869927</guid>
      <dc:creator>Adrian_72</dc:creator>
      <dc:date>2004-08-03T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for user  creation in database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348459#M869928</link>
      <description>You could use a program and read a record out of one, read a record out of the other, and create the script to create the user.&lt;BR /&gt;&lt;BR /&gt;What I'd do is create a table with a number key, username and password fields.  I'd load the username with a counter into the table.  Then I'd update the records with the password using a counter.  Then it would be a simple script like in your last post&lt;BR /&gt;&lt;BR /&gt;spool creator.sql&lt;BR /&gt;select 'create user '||username_v||' identified by '||password_field||' default tablespace siebeldata temporary tablespace temp;',&lt;BR /&gt;'grant role_1, connect to '|| name&lt;BR /&gt;from my_name_table;&lt;BR /&gt;spool off&lt;BR /&gt;@@creator.sql&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2004 14:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348459#M869928</guid>
      <dc:creator>John Wimmer_1</dc:creator>
      <dc:date>2004-08-03T14:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for user  creation in database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348460#M869929</link>
      <description>&lt;BR /&gt;Hmmm, scary thought to have two seperate lists for that. They could not generate them into one list?&lt;BR /&gt;&lt;BR /&gt;Anyway... this problem is much similar to:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=650699" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=650699&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;One potential solution in awk:&lt;BR /&gt;&lt;BR /&gt;awk '{getline pass &amp;lt; "passwords.dat"; print "create user",$1,"identified by",pass,"default blah blah..."}' usernames.dat&lt;BR /&gt;&lt;BR /&gt;So here the main awk loop reads "usernames" and feeds them into $0, $1 and so on.&lt;BR /&gt;THen for every record read, we start py reading a line from "passwords" into symbol pass and print that along with the sql text and $1 (the first and only field from "usernames".&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2004 15:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348460#M869929</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-08-03T15:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for user  creation in database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348461#M869930</link>
      <description>Hein Van Den;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;I execute the next:&lt;BR /&gt;awk '{getline pass &amp;lt; "passwords.dat"; print "create user",$1,"identified by",pas&lt;BR /&gt;s,"default tablespace siebeldata temporary tablespace temp; grant sse_role,creat&lt;BR /&gt;e session to",$1,";"}' usernames.dat &amp;gt; /tmp/users/yo.sql&lt;BR /&gt;&lt;BR /&gt;but I can't execute the yo.sql file &lt;BR /&gt;&lt;BR /&gt;The yo.sql file is:&lt;BR /&gt;&lt;BR /&gt;create user CAP101 identified by DEMO1 default tablespace siebeldata temporary tablespace temp; grant sse_role,create session to CAP101 ;&lt;BR /&gt;&lt;BR /&gt;I need insert a line before the grant&lt;BR /&gt;how I can put this line?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Aug 2004 17:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348461#M869930</guid>
      <dc:creator>Adrian_72</dc:creator>
      <dc:date>2004-08-03T17:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for user  creation in database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348462#M869931</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;it seems like you have two posts for the same questions.&lt;BR /&gt;&lt;BR /&gt;please refer to the other post.&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=654889" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=654889&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Wed, 04 Aug 2004 01:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348462#M869931</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2004-08-04T01:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: help needed for user  creation in database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348463#M869932</link>
      <description>not real hpux admin way but easy is to use MS excel and concatenate function this is very quick and easy for making scripts like this it is interactive.</description>
      <pubDate>Wed, 04 Aug 2004 02:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-needed-for-user-creation-in-database/m-p/3348463#M869932</guid>
      <dc:creator>Petr Simik_1</dc:creator>
      <dc:date>2004-08-04T02:41:06Z</dc:date>
    </item>
  </channel>
</rss>

