Logger icon indicating copy to clipboard operation
Logger copied to clipboard

logger_install script is missing

Open eaolson opened this issue 9 years ago • 5 comments

Installing Logger for the first time on my own instance. The create_user script says to run the logger_install.sql script as the logger user, but that script doesn't exist in source/install. I found a version in releases/logger_3.1.1.zip. That raised one error when creating a trigger, but recompiling after installation and it seems to be fine.

eaolson avatar Nov 13 '16 16:11 eaolson

Seeing the same issue, Is this getting fixed? Thanks for the work-around.

p3t3r avatar May 30 '17 08:05 p3t3r

This is a documentation issue. The installation scripts are in the releases folder.

jeffreykemp avatar May 30 '17 09:05 jeffreykemp

Where do i make pull requests for fixes for the logger_install script?

motey avatar Mar 08 '18 13:03 motey

I'm in the process of rebuilding the entire install process. What changes do you want to make?

I know it's not github best practices but it may be best right now to highight the code change in this ticket.

martindsouza avatar Mar 08 '18 13:03 martindsouza

I had an issue when trying to install logger from a sqlplus script to a certain schema. in this script i changed the current schema with alter session set current_schema = WHATEVERUSER before calling the install_logger script. In this case query in line 112 for examples fails

select nullable
    into l_nullable
    from user_tab_columns
    where table_name = 'LOGGER_LOGS'
      and column_name = upper(l_required_columns(i));

Because with alter session set current_schema only the working schemas changes but not the user context. I had to change the query to

select nullable
    into l_nullable
    from dba_tab_columns
    where table_name = 'LOGGER_LOGS'
	  and owner = sys_context('userenv','current_schema')
      and column_name = upper(l_required_columns(i));

same for queries in lines

  • 139
  • 158
  • 176
  • 197
  • 221
  • 395
  • 426
  • 480
  • 514
  • 539
  • 557
  • 595
  • 649
  • 669

motey avatar Mar 08 '18 13:03 motey