User Profile

Collapse

Profile Sidebar

Collapse
brig
brig
Last Activity: Aug 4 '07, 03:17 AM
Joined: Jul 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • NEVER MIND :-)

    I got it all to work. Thank you.
    See more | Go to post

    Leave a comment:


  • brig
    started a topic Error in Procedure to Create Users. Duplicate name.

    Error in Procedure to Create Users. Duplicate name.

    Hi All,

    I have a Table (STDTable) with 3 columns: STDAccount, STDpassword, IRowId.
    I am getting a user conflicts error when I 'get the next' user info from the table. I am using SQLDeveloper.

    Below is the procedure and the error that follows. I understand I should not be creating users in the sys schema, but I am still learning and don't know how to make a new schema to put these users into. So for now, this is...
    See more | Go to post

  • brig
    replied to A procedure can not create a user?
    Hi, Yes I am doing this under SYS. Someone told me I shouldn't use SYS and create tables there. Should I use system?
    I also think my code is just wrong. I have changed it many times. I think I need to start over, thinking clearly. Then I will repost if it doesn't work.

    Thank you so much for listening and helping :-)
    brig
    See more | Go to post

    Leave a comment:


  • brig
    replied to A procedure can not create a user?
    Procedure to create users worked but where are they???

    I am very confused. I ran the script below and it worked and was completed. But where are the users it was supposed to create? Am I to do something in addition to running the procedure? I am so sorry if this is a baby question.
    Thank you
    Brig


    SQL> create or replace
    2 PROCEDURE makeStudents
    3
    4 AS
    ...
    See more | Go to post

    Leave a comment:


  • brig
    replied to A procedure can not create a user?
    Well, all worked fine. Said procedure successfully completed. But no users were created. AM I missing something???
    See more | Go to post

    Leave a comment:


  • brig
    replied to A procedure can not create a user?
    Thank you, that did it. Thank you so much, It was an itch I couldn't scratch for days. :-)
    See more | Go to post

    Leave a comment:


  • brig
    started a topic A procedure can not create a user?

    A procedure can not create a user?

    I am reading and thinking that a user (or any object) cannot be created within a procedure. Is that correct? I am new to
    PL/ SQL, not programming, but do apologize.
    I have a StdtTable (in SYS) with 3 columns: account, password, rowid.
    I just want to read each row and create a user. This is what I have, does anyone have any idea's? The code is sloppy as I am stuck on the create. :-( Thank you. Oh, I am running this is SQLDeveloper....
    See more | Go to post

  • brig
    started a topic creating a user within a function

    creating a user within a function

    Hi, I am new to sql, so I apologize in advance. I wrote a procedure which calls a function. (I am not sure if the procedure will work yet). MY question is on the function. I am not sure I wrote it correctly as it gives me the Error(10,6): PLS-00103: Encountered the symbol "CREATE" ..
    Can you create a user in a function? The procedure reads acct names and passwords from a table, then while its not at the end it creates a user....
    See more | Go to post
No activity results to display
Show More
Working...